Quantcast
Channel: Questions in topic: "unity 5"

NullReferenceException: Object reference not set to an instance of an object

When I click on the run button in the unity editor it gives out this error, but when I select gameobject SoundManager all works fine I recorded a video to make it clear what I mean...

View Article


How to open the door after picking up the keyObject?

I am trying to open the door when the player pick-up the key and becomes next to the door, depending on OnTriggerEnter function. I called OnTriggerEnter function in the script of PicUpKey.cs but the...

View Article


How to make the enemy invisible before it goes inside the vision of the player?

I am trying to make the Enemy invisible before he goes inside the player's vision cone, once he becomes inside the vision cone it should be visible. In the start function I have added the following...

View Article

muzzle flash works without stopping?

I am trying to add a flash on the gun using muzzle flash, but the problem is when I click on the mouse it works without stopping (no-stopping work) even if I don't click on the mouse. PLEASE HELP....

View Article

Animator is not working

using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public enum SIDE {Left, Mid, Right} public class PlayerMove : MonoBehaviour { public SIDE m_side =...

View Article


Did anyone know about Mis Middleware package which is on unity asset store?

i want to work on Mis Middleware

View Article

How do you make a player not bend down when you place the mouse pointer on it?

I'm trying to make a script for the player's movements in order to make the player walk in all directions and rotate around itself, the problem is when I place the mouse pointer on the head or on the...

View Article

I lost my entire project. Can I restore or reverse engineer it back from my...

Recently I lost my project for a mobile game. I have put enough time and effort into this that starting again from scratch would suck. I am wondering if I could reverse engineer the game assets, source...

View Article


UNITY EXPORT A AUDIO FILE IN RUNTIME, to the downloads file on the player PC

UNITY EXPORT A AUDIO FILE IN RUNTIME, to the downloads file on the player PC. Anyone can help me? So far I can record the audio as an mp3 but I cant find a solution that when I press stop recording,...

View Article


Sprite Serialization in Netcode

Hello. I want to serialize Sprite in Netcode, but getting this error: **OverflowException: Writing past the end of the buffer Unity.Netcode.FastBufferWriter.WriteBytesSafe (System.Byte* value,...

View Article

Best way to make levels in Unity?

This is kind of a question for game design in general. But for 3D games, should I be designing levels in Unity? Or making them in Blender and then porting them over? Or a mix of the two? I kind of just...

View Article

Object dragging issue (backward direction),Object Dragging issue (Backward...

Hi Everyone, Can anyone help me out in resolving some issues in my unity3D project. I have build a scene where I am doing just drag and drop of 3D objects . While I'm dragging the object forward or...

View Article

Disable log writes by unity and mono,Disable unity and mono logging in appdata

Version : unity version 5 OS : Windows 7 My issue is with both unity and mono, they keep registering log data to my appdata folder. unity is writing an "Editor.log" under unity folder and mono is...

View Article


Distortion of transparent objects with shadergraph + vfx graph, in unity 2022...

I want to distort transparent objects, use shadergraph + vfx graph for it. The way I distort transparent objects is that, I use grab pass (https://github.com/Haruma-K/URPGrabPass) which returns texture...

View Article

How do pick up and drop each item separately?

I am trying to build an inventory system to pick up and drop items depending on arrays, but the problem is when I pick up an item, all other items are picked up also and it is the same in the dropping,...

View Article


How to Optimize Server Storage Usage for Unity Multiplayer Games?

Hi everyone, I am developing a multiplayer game using Unity, and I'm wondering if anyone has any tips or best practices for optimizing server storage ([lenovo.com/de/de/servers-storage/][1]) usage for...

View Article

How to get and set panel position inside another panel?

Hello there, I'm designing something like a studio where the player will be able to instantiate panel inside another one, and the player will be able to move and resize the small panel. I need to know...

View Article


BuildPlayerWindow + BuildMethodException error. Please help me!

**Hello! I recently started working on a project and I've looked at the other forums, tried pretty much everything to solve this problem and nothing worked. I'm super stressed and it feels like it just...

View Article

HDRP Grass Performace Issue

Hi! I recently started making an enviroment for my 3D game (I'm not very experienced since I mostly made 2D games so far) and everything semmed to go well until I added grass. I'm working on HDRP so I...

View Article

Switch between camera code not working

Hello, im a beginner of unity **** I have created a code to **change first person to third person** **** The problem is that is ***not working*** My code: public class CameraToggle : MonoBehaviour {...

View Article

NullReferenceException: Object reference not set to an instance of an object...

Hello, I'm encountering the following error when opening a new project in Unity, and I get the same error every time I open a new project: NullReferenceException: Object reference not set to an...

View Article


is Adaptive Probe Volumes available with unity 2021?

is Adaptive Probe Volumes available with unity 2021? specifically URP, if so how do i get it? and if it isnt, will it be available in the future?

View Article


While shifting project facing problem as project is connected with version...

I want to shift my Unity project in my new laptop, my project is connected with version control (plastic SCM). I have zipped my project folder and using usb shift it to another laptop. I suppose after...

View Article

How to Check the Proper Difference of the status of the gameplay players...

public void CheckPlayerStatusOnMovementEnd() { int PlayersMovementEnd=0; //First Check All Players Have Movemenet End and Is ResetPosition will be False for (int i = 0; i < GamePlayPlayers.Count;...

View Article

Can someone help me, how do I tile this flat object it’s strectched?

https://share.icloud.com/photos/062GWDht7K5khcqtGpzp3c1dQ As you can see the object is stretched a lot and i want to tile it.

View Article


Why unity urp lit shader not working with terrain trees. How to Solve This...

i made a urp lit shader to make a grass model. then adding prefab to terrain trees option not working properly. The grass is not showing when placing trees. The console error showing the tree must use...

View Article

Do shaders always run?

I have setuped a grass shader with only 2d texture in it. i have spread grass across the terrain. but this slowed down the pc. even when the grass is culled the shader is running. even when grass is...

View Article

Character Controller is not working in Right way.

I am facing a problem for a few days but can't fix it. I have a character walks using animations through root motion. It walks perfectly on the plane ground but as It goes over some heights even very...

View Article

Optimize the code

using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; using SWS; public class PathCreator : MonoBehaviour { public static Action...

View Article



The Animator is not working

When press pluss, i couldn`t add animations. Help pls

View Article