Function serializedObject

  • Decorator that enables the entire class to be serializable. Normally only Component and Resource types are serialized but you can use this decorator to enable arbitrary types to be serialized.

    Parameters

    • Optionaloptions: Partial<SerializedObjectAttribute>

    Returns AttributeDecorator<Attribute>

    The decorator enables serialization of all fields in class, but not its properties. To only mark certain fields or properties to be serializable, use the serializedField decorator.