Example: If I write following code in a Script file. #if UNITY_EDITOR Debug.Log( "I'll print in Editor only.." ); #endif My question is that when creating
I'm trying to create a custom editor window in Unity that make me able to generate "things". When I open my custom window I want a list (and of course other var
this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // Start is called
While following the mrtk tutorial on multi-user capabilities, there has been one CS0246 error that I haven't been able to avoid. After importing PUN 2 from the
I need some help in moving my player car in the reverse direction in unity C# scripting. The forward movement is perfect but the reverse movement is totally opp
In my GameManager script I have a delegate. In my Door script, I subscribe to this delegate. I've tried unsubscribing from it in both the OnDisable and OnDestro
I am trying to program a script that when you hit an enemy it plays a sound, problem is I can't get it to play the sound it sees the audio source but my script
I want to place multiple azure anchors and set up pathfinding (like destination point ). I followed the (https://docs.microsoft.com/en-us/azure/spatial-anchors/
While I built an idea of what vert_img does by observing results, I would like to read a more theoretical explanation that I couldn't find online. For context,
I see that we can initialize Variable in Awake() or Start() and Awake() will be called before Start(). When should we initialize in Awake and Start to have th
I have a Unity project which I build for Android and iOS platforms. I want to check for internet connectivity on Desktop, Android, and iOS devices. I've read ab
Please let me start off by saying I have only been programming for about 2 years now. I am somewhat new to it. I am also more of an Android developer than an Ap
I'm using Unity version 2019.4.3f1 I'm trying to load local video file on Android 10 device (Samsung A90) from the gallery but I'm not able getting this error:
In order to debug the code for android tags are very helpful to filters the logs on the basis of tags. In Unity 3d when we use Debug.Log By defaults all log
This is a pretty simple question, but it seems something has changed on Unity in the last versions answers I've found on the internet are no longer valid, so he
I wanted my UI to not resize when user is still resizing the game (holding click in the window border) and only when the user has released the mouse the resize
I want to make an AR foundation project but I keep getting this problem .Can someone helps me please ? No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem i
Unity's Raycast functions has a parameter you could use to raycast to a particular GameObject. You can also use that parameter to ignore particular GameObject.
The textmesh pro file is not loading in unity. I am making a project using arcore and due to some issue with textmesh pro I was not able to build it properly.
I serialize a class in an azure function app and collect it via response to post in Unity3d. It's a WebGL project and it works fine on Editor but throws excepti