Anvil
Anvil.API.NuiProperty< T > Class Template Reference

A NUI property that can be configured as a static readonly value, or a property that can be updated at runtime. More...

+ Inheritance diagram for Anvil.API.NuiProperty< T >:

Static Public Member Functions

static NuiBind< T > CreateBind (string key)
 Creates a Nui variable binding that can be changed at runtime. More...
 
static NuiValue< T > CreateValue (T value)
 Creates a readonly Nui variable that cannot be changed at runtime. More...
 
static implicit operator NuiProperty< T > (T value)
 

Detailed Description

A NUI property that can be configured as a static readonly value, or a property that can be updated at runtime.

Template Parameters
TThe underlying type of the property.

Member Function Documentation

◆ CreateBind()

static NuiBind<T> Anvil.API.NuiProperty< T >.CreateBind ( string  key)
inlinestatic

Creates a Nui variable binding that can be changed at runtime.

Parameters
keyThe key to use for the binding.
Returns
A NuiBind object.

◆ CreateValue()

static NuiValue<T> Anvil.API.NuiProperty< T >.CreateValue ( value)
inlinestatic

Creates a readonly Nui variable that cannot be changed at runtime.

Parameters
value
Returns

The documentation for this class was generated from the following file: