Source Academy Modules
    Preparing search index...

    Function get_custom_prop

    • Get the value of a custom property with its name on a GameObject

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

        The identifier for the GameObject that you want to get the custom property on.

      • propName: string

        The name (a string) of the custom property

      Returns any

      The value of the custom property with the given name on the given GameObject. If the property value is not set, this function will return undefined.