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

unity function awake() called twice

Coder Genius answered on January 27, 2023 Popularity 6/10 Helpfulness 2/10

Contents


More Related Answers

  • unity function start() called twice
  • difference between awake and start unity
  • unity invoke a method in seconds
  • unity when is awake called
  • unity awake
  • unity call function after delay
  • unity Awake() called multiple times
  • unity start awake not called

  • unity function awake() called twice

    0

    Unity functions Awake() and Start() called twice

    If you have accidentally dropped the same script on 2 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 twice. Delete one of the scripts and you will have the functions Awake() and Start() called once!

    Popularity 6/10 Helpfulness 2/10 Language csharp
    Source: Grepper
    Tags: c# function
    Link to this answer
    Share Copy Link
    Contributed on Jan 27 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.