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

unity start() called multiple times

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

Contents


More Related Answers

  • how to wait for a few seconds unity
  • coroutine not eaffected by time.timescale unity
  • unity call function on update once per second
  • unity function start() called twice
  • unity call function after delay
  • leantween unity when timescale 0
  • unity start function after coroutine finished
  • unity Awake() called multiple times

  • unity start() 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 3/10 Helpfulness 3/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.