docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor EntityPrefabReference

    EntityPrefabReference(Hash128)

    Construct an EntityPrefabReference from a GUID.

    Declaration
    public EntityPrefabReference(Hash128 guid)
    Parameters
    Type Name Description
    Hash128 guid

    The prefab asset GUID.

    EntityPrefabReference(GameObject)

    Construct an EntityPrefabReference from a GameObject.

    Declaration
    public EntityPrefabReference(GameObject prefab)
    Parameters
    Type Name Description
    GameObject prefab

    The prefab to construct from.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)