289 reputation
215
bio website
location
age
visits member for 2 years, 10 months
seen May 14 at 18:19

Jul
1
accepted Why is anti aliasing not being applied to my 2D objects in Unity?
Jun
29
comment Why is anti aliasing not being applied to my 2D objects in Unity?
Excellent, I shall try that. Thank you.
Jun
29
asked Why is anti aliasing not being applied to my 2D objects in Unity?
Jun
16
accepted Unity - Avoid using Find method by caching UnityObjects - Code review
Jun
16
comment Unity - Avoid using Find method by caching UnityObjects - Code review
Excellent, thank you.
Jun
16
comment Unity - Avoid using Find method by caching UnityObjects - Code review
But the class itself has the code to self destruct and remove the game object. Do I have to check whether this is the original object and not a clone then. Can't the original object be deactivated in some way so it doesn't have to exist in the game world and only the instantiated clones exist?
Jun
16
comment Unity - Avoid using Find method by caching UnityObjects - Code review
If one of those objects called GameObject.Destroy(this.gameObject); in their original code. How could I make sure that further instances could be created? See my edit.
Jun
16
revised Unity - Avoid using Find method by caching UnityObjects - Code review
added 698 characters in body
Jun
16
comment Unity - Avoid using Find method by caching UnityObjects - Code review
I like the idea of single instance classes taking care of themselves, thank you. As for instantiating objects from a cache, is comparing the type T with GetType a bit icky?
Jun
16
asked Unity - Avoid using Find method by caching UnityObjects - Code review
Apr
11
awarded  Popular Question
Jan
21
awarded  Yearling
Jan
12
accepted Trying to access another class that is outside my Unity script but casting is failing
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
So 'camera' is a protected name.
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
I'm still getting a warning that I am hiding an inherited member 'UnityEngine.Component.camera' if I go with this approach though.
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
Ah, I see. That's what has been confusing me. Thank you.
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
Debug.Log(GetComponent(typeof(FlyThroughCamera))) returns null
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
I have added a screenshot as requested.
Jan
12
revised Trying to access another class that is outside my Unity script but casting is failing
added 89 characters in body
Jan
12
comment Trying to access another class that is outside my Unity script but casting is failing
GetComponent still returns null, even though the class exists and is linked via the Inspector window.