Struct SpawnPrefab | DOTS Timeline | 0.4.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Struct SpawnPrefab

    Buffer element used for spawning prefabs

    Namespace: Unity.Timeline
    Syntax
    public struct SpawnPrefab : IBufferElementData

    Fields

    Prefab

    Prefab Entity to Spawn

    Declaration
    public Entity Prefab
    Field Value
    Type Description
    Entity

    Rotation

    Spawned Rotation

    Declaration
    public quaternion Rotation
    Field Value
    Type Description
    quaternion

    Scale

    Spawned Object Scale

    Declaration
    public float3 Scale
    Field Value
    Type Description
    float3

    Tag

    Tag to assign the spawned prefab

    Declaration
    public Entities.Hash128 Tag
    Field Value
    Type Description
    Unity.Entities.Hash128

    Translation

    Spawned Position

    Declaration
    public float3 Translation
    Field Value
    Type Description
    float3
    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