All Questions
5
questions
0
votes
0
answers
69
views
Unity setactive() not working because of object name
So I have a sort of item system in my game and it opens a savefile to see what items the player has at the time, when it loads it enables and disables objects based on the savefile information. Which ...
1
vote
1
answer
1k
views
C# class can't see static method of another class
I've run into some accessibility problem with one of my Unity projects. I created a class that does NOT inherit from MonoBehaviour. It has a method public static void LoadScene(string sceneName).
When ...
0
votes
4
answers
7k
views
How to fade out / disapear a GameObject slowly?
I have a function where I have to dispear some GameObjects, at the moment I use SetActive(false) but it should not disapear instantly, it should disapear slowly in 2 or 3 seconds. I guess opacity ...
0
votes
2
answers
2k
views
Unity3D mouse cursor visibility - C#
I want to set cursor invisible and locked on the middle of the screen when the game is running, but when in inventory or in menu I want cursor visible and unlocked. I made something like that:
if (...
1
vote
4
answers
8k
views
Unity SetActive(True) Not working?
so I've been spending the past 9 hours trying to fix this. I have a weapon attached to a plane. I want this weapon to appear and be functional, after I get a specific number of kills. It does ...