Skip to main content
11 events
when toggle format what by license comment
Jul 12, 2019 at 15:26 vote accept tmighty
Jul 12, 2019 at 15:19 comment added DMGregory There's some similar issues discussed in this Q&A: Check if Game Component is Ready in Unity
Jul 12, 2019 at 15:15 answer added tmighty timeline score: 1
Jul 12, 2019 at 15:06 comment added tmighty @Ben Thank you, your comment lead me to the real problem. The script sits on a gameobject in the scene, so it is being initalized. However, I found out that it is initalized AFTER I access it. So I will now investigate if I can change the initialization order.
Jul 12, 2019 at 15:04 history edited tmighty CC BY-SA 4.0
added 417 characters in body; edited title
Jul 12, 2019 at 14:52 history edited tmighty CC BY-SA 4.0
I have added some code to check if Start or Awake have occured
Jul 12, 2019 at 14:46 comment added tmighty @Philipp I attached the VS debugger to the Unity project.
Jul 12, 2019 at 11:02 comment added Philipp How do you know that Awake and Start are not being called on GameObject?
Jul 12, 2019 at 7:48 answer added Jack Mariani timeline score: 2
Jul 12, 2019 at 3:18 comment added Ben You need to instantiate your empty game object. You can't just load the file. Awake and Start are called when you instantiate a game object
Jul 12, 2019 at 0:43 history asked tmighty CC BY-SA 4.0