Quantcast
Channel: Answers for "Creating a pointer variable to a GameObject inside a class that does not extend MonoBehavior? [C#]"
Browsing all 4 articles
Browse latest View live

Answer by eu-ge-ne

You can easily find any `GameObject` by name or tag: private GameObject Cam { get { return GameObject.Find("Main Camera"); // or // return GameObject.FindGameObjectWithTag("TagName") } } If You are...

View Article



Answer by Bunny83

I think you have to start to use the right terms as in C# there are actual [pointers][1] (only available in an unsafe context) and [references][2]. In C# most the time you will work with references and...

View Article

Answer by eu-ge-ne

You can easily find any `GameObject` by name or tag: private GameObject Cam { get { return GameObject.Find("Main Camera"); // or // return GameObject.FindGameObjectWithTag("TagName") } } If You are...

View Article

Answer by Bunny83

I think you have to start to use the right terms as in C# there are actual [pointers][1] (only available in an unsafe context) and [references][2]. In C# most the time you will work with references and...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images