Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Strange phenomenon after setting GO active in animation

Discussion in 'Animation' started by evenstarX, Apr 28, 2024.

  1. evenstarX

    evenstarX

    Joined:
    Jun 19, 2021
    Posts:
    4
    Hi, all.

    I encountered a strange problem and simplified it into the following question:

    1.The sphere child GO is disabled by default. It is enabled during the active1 animation, but it is inexplicably disabled again when entering rotate0. There is no operation on this object in the rotate animation. And there is no way to manually turn on or off sphere in the hierarchy view at this time upload_2024-4-28_18-12-20.png

    2.I simplify the state machine only keep it as shown in the figure below. And there is no way to manually turn on or off sphere in the hierarchy view, too.

    upload_2024-4-28_18-15-22.png



    And the unity project is in the attachment. test.controller and test2.controllercorrespond to two situations.
    unity 2023.2.15f1
     

    Attached Files: