docs.unity.cn
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023