Plush

DataReference#

PlushEngine · Type index

Namespace: PlushEngine

A typed reference to a project datablock. Expose this on a Script to choose data in the Inspector, then resolve it with Scene.Data.Get(reference) in OnAttach or later.

public readonly record struct DataReference<T>(string Id)
    where T : DataBlock

Usage and examples

Record properties#

PropertyTypeAccessConstructor default
Idstringget; init;required

Members: IsSet

IsSet#

public bool IsSet { get; }

Whether data has been assigned. An unset reference cannot be resolved.

DataBlock

Source#