docs.unity.cn
    Show / Hide Table of Contents

    Method GetFields

    GetFields(Type)

    Gets all registered fields of a runtime type.

    Declaration
    public static HashSet<string> GetFields(Type type)
    Parameters
    Type Name Description
    Type type

    Type of the runtime component. Must implement IComponentData.

    Returns
    Type Description
    HashSet<String>

    Returns a HashSet of field names.

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