ProtoTwin API
    Preparing search index...

    Function Optional

    • Property decorator that specifies that the property value is optional (nullable).

      Type Parameters

      • T

      Parameters

      Returns PropertyDecorator

      The property decorator instance.

      This is automatically applied by the script editor to (non-array) properties that can be set to null, informing the inspector of the type of the property. Do NOT explicitly add this decorator to properties.