Skip to main content
1 vote
1 answer
103 views

For two days now, I've been having a rather strange problem. The MonoBehaviour class isn't recognized by VS Code, with the following error: Error while loading [...]: Exception thrown: System....
2 votes
6 answers
6k views

I am using an empty Unity Android project. I am not able to build APK since 2 weeks. I am getting this error CommandWithNoStdoutInvokationFailure: Gradle initialization failed. UnityEditor.Android....
26 votes
4 answers
10k views

I've noticed that if I have some variables exposed to the Unity inspector such as: [SerializeField] GameObject _tickIcon; If I leave them unassigned and try to use the null conditional operator and ...
-1 votes
2 answers
606 views

I'm in the middle of a Tower Defense - style developing in Unity using C#. So, I have an abstract class for the towers that has an int for the range, the rate of fire, etc. And then I have a few child ...
0 votes
0 answers
36 views

I’m currently testing my Unity project for Android 15 compliance (Google Play requirement for 16 KB memory page sizes). After upgrading to Unity 6000.0.62f1 (which claims to support 16 KB page size by ...
0 votes
1 answer
68 views

I have tried for days to troubleshoot but only met with persisting Type Mismatch. I am working on a flappy bird game and i wanted to make the pipes go faster as the score increases so i made a [...
2 votes
4 answers
3k views

My old project gave me this error after I change my system to apple m1 . USE_AUTH_EMULATOR not set. when I use "SignInWithEmailAndPasswordAsync" func, immediately I get "...
0 votes
1 answer
8k views

I'm pretty new to unity so I'm sorry if this is an easy fix, but I can't figure it out. I'm getting a null error something to do with my playerInputHandler. Could someone point out where I'm going ...
0 votes
0 answers
39 views

Our games built using Unity, use Google Play Games Services v1 to support Google Signin. Once the player is signed in, token is obtained using: token = PlayGamesPlatform.Instance.GetIdToken(); and ...
1 vote
2 answers
72 views

I have a class for lists called UniqueListWithActions<T> with the constructor method public UniqueListWithActions(List<T> _list) { list = _list; } list is declared as ...
2 votes
1 answer
9k views

I'm trying to use Zenject in Unity. I have an interface and several implementations of it. I want to inject with ID but also that the implementation will have the tick interface since it's not a ...
30 votes
14 answers
118k views

I'm using Unity 3D's new UI system to build a pause menu for my game. Currently I'm trying to have my buttons respond to mouse clicks. Some of my hierarchy is as follows: When I click on one of my ...
1 vote
2 answers
118 views

Iteration of every variable in the foreach is not assigned to the weapon iterated. public class CharacterAttack : MonoBehaviour { #region Fields private Weapon weapon; public List<...
Best practices
1 vote
2 replies
47 views

I’d like to ask about best practices for using a finite state machine to handle different enemy behaviors. I already created a state machine for my basic enemies with the following behavior: ...
1 vote
2 answers
1k views

I want to rotate my camera horizontally around the object 360 degree and I want to limit my vertical rotation from -45 to 45 degrees. I have found some solution over internet but none of them are ...

15 30 50 per page
1
2 3 4 5
5133