Method GetTrait
GetTrait(TraitIndex)
Retrieves a reference to a trait stored in the runtime asset.
Declaration
public ref Binary.Trait GetTrait(Binary.TraitIndex traitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Binary.TraitIndex | traitIndex | The trait index to retrieve the reference for. |
Returns
| Type | Description |
|---|---|
| Binary.Trait | Trait reference that corresponds to the index passed as argument. |