docs.unity.cn
    Show / Hide Table of Contents

    Method DeclareReferencedAsset

    DeclareReferencedAsset(Object)

    DeclareReferencedAsset includes the referenced asset in the conversion process. Once it has been declared, you can use GetPrimaryEntity to find the Entity for the asset. This Entity will also be tagged with the Asset component.

    Declaration
    public void DeclareReferencedAsset(Object asset)
    Parameters
    Type Name Description
    Object asset
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use