Set Spawn Time | Visual Effect Graph | 10.2.2
docs.unity3d.com
    Show / Hide Table of Contents

    Set Spawn Time

    Menu Path: Spawn > Custom > Set Spawn Time

    The Set Spawn Time Block allows following Initialize Contexts to use the time since the spawn Context’s last play event (see totalTime).

    img

    In this example, the left system uses source spawnTime, which resets for each start event of the previous spawn context. The right system uses VFX total time which is simply the accumulation of deltaTime since Visual Effect component activation.

    Block compatibility

    This Block is compatible with the following Contexts:

    • Spawn

    Remarks

    This Block uses a VFXSpawnerCallback interface and you can use it as a reference to create your own implementation. The implementation for this Block is in com.unity.visualeffectgraph > Runtime > CustomSpawners > SetSpawnTime.cs.

    In This Article
    • Block compatibility
    • Remarks
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023