I am spawning a prefab that disappears after 1.55 seconds for status effects. Is there a difference between the Auto Destroy and the Destroy After (s) seconds options?
  • edited May 10
    Yes - will probably need to adjust the help texts to avoid confusion.
    Auto Destroy is for auto destroying after the defined time after the prefab was spawned.
    The Destroy After setting is for when the prefab is destroyed, mainly when the effect is removed.

    So, when not using auto destroy, the prefab is removed when the effect ends - and the destroy after time kicks in to remove it after some time after the effect is removed.

    When using auto destroy, the auto destroy time starts when the effect is applied - afterwards the destroy after time is used for actually destroying the prefab.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on!
Sign In or Register to comment.