RSX Code Reference
    Preparing search index...

    Class Settings

    Contains a serializable set of generic key-value pairs.

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns Settings

    • get hash(): number

      Returns a hash value that may be used for checking if any internal settings were modified.

      Returns number

    • Deletes all key/value pairs.

      Returns void

    • Deletes a key with the specified name.

      Parameters

      • name: string

      Returns void

    • Returns the boolean point value of the specified key, or the default value if such key cannot be found.

      Parameters

      • name: string
      • OptionaldefaultValue: boolean

      Returns boolean

    • Returns the floating point value of the specified key, or the default value if such key cannot be found.

      Parameters

      • name: string
      • OptionaldefaultValue: number

      Returns number

    • Returns the integer point value of the specified key, or the default value if such key cannot be found.

      Parameters

      • name: string
      • OptionaldefaultValue: number

      Returns number

    • Retrieves a generic object property.

      Type Parameters

      • T

      Parameters

      • type: ClassOf<T>
      • name: string

        Name of the property to retrieve.

      Returns T

      Value of the property if it exists, otherwise an empty instance of the object. Returns null if the type of the stored object doesn't match the requested type.

    • Retrieves a generic object property.

      Type Parameters

      • T

      Parameters

      • type: ClassOf<T>
      • name: string

        Name of the property to retrieve.

      • defaultValue: T

        The default value to return in case the object is not defined.

      Returns T

      Value of the property if it exists, otherwise returns the given default value. Returns null if the type of the stored object doesn't match the requested type.

    • Returns the string point value of the specified key, or the default value if such key cannot be found.

      Parameters

      • name: string
      • OptionaldefaultValue: string

      Returns string

    • Returns true if the key with the specified name exists.

      Parameters

      • name: string

      Returns boolean

    • Allows modifying this object multiple times in a row in a scope, without marking the object dirty immediately. Dirty flags are accumulated and the object is marked dirty at the end.

      Parameters

      • action: () => void

        The scope where the object is modified.

      Returns void

    • Adds or updates a property key/value pair with a boolean value.

      Parameters

      • name: string
      • value: boolean

      Returns void

    • Adds or updates a property key/value pair with a floating point value.

      Parameters

      • name: string
      • value: number

      Returns void

    • Adds or updates a property key/value pair with a signed integer value.

      Parameters

      • name: string
      • value: number

      Returns void

    • Sets a generic object property. Any object marked with the serializedObject attribute can be provided, excluding components and resources.

      Parameters

      • name: string

        Name to record the property under.

      • value: any

        Value of the property.

      Returns boolean

    • Adds or updates a property key/value pair with a string value.

      Parameters

      • name: string
      • value: string

      Returns void

    onDirty: Event<[dirtyFlags: EnumValue<ManagedSettingsDirtyFlag, number>]>

    Event that is triggered when a member changes.