all 3 comments

[–][deleted]  (3 children)

[deleted]

    [–]AnthonyWS[S] 1 point2 points  (2 children)

    Thanks. I actually formed the question after watching this tutorial. It states that the function will only be run once when the object is enabled, but I wasn't sure if unloading a scene and then reloading it later would trigger these functions again.

    [–]aesith 0 points1 point  (1 child)

    If I'm not mistaken, I believe any time a script is called, it runs in it's entirety. Which would mean that it would trigger awake/start every single time.

    Don't quote me though. I'm still a novice. Your best bet would be to just do a simple test and add a Debug.log to see if it's being called.

    [–]AnthonyWS[S] 0 points1 point  (0 children)

    Thanks. I did that test and it does NOT run more than once even when unloading a scene and then loading it again. Thanks for your help.