Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

unity Awake() called multiple times

Coder Genius answered on January 31, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • coroutine not eaffected by time.timescale unity
  • unity function start() called twice
  • difference between awake and start unity
  • unity when is awake called
  • unity start() called multiple times
  • unity function awake() called twice
  • unity start awake not called

  • unity Awake() called multiple times

    0

    Unity functions Awake() and Start() called multiple times

    If you have accidentally dropped the same script on multiple game objects buried in the inspector hierarchy, there will be two instances of that script. Another occasion is that you have dropped accidentally the same script twice in one game object.

    So the functions Awake() and Start() will be called multiple times.
    Delete the excess scripts and leave only one and you will have the functions Awake() and Start() called once!

    Popularity 1/10 Helpfulness 1/10 Language csharp
    Source: Grepper
    Tags: c#
    Link to this answer
    Share Copy Link
    Contributed on Jan 31 2023
    Coder Genius
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.