Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Attribute Interface Reference

Public Member Functions

void Attribute (string defvalue="", string uiwidget="auto", string desc="", string params="", ParamEnumArray enums=NULL, string category="", int precision=3)
 

Public Attributes

string m_DefValue
 
string m_UiWidget
 use values from UIWidgets
 
string m_Params
 Properties for UI in editor, depends on property type and used UI Widget.
 
string m_Desc
 
string m_Category
 
int m_Precision
 
ref ParamEnumArray m_Enums
 Only ints and floats are currently supported.
 

Constructor & Destructor Documentation

◆ Attribute()

void Attribute.Attribute ( string  defvalue = "",
string  uiwidget = "auto",
string  desc = "",
string  params = "",
ParamEnumArray  enums = NULL,
string  category = "",
int  precision = 3 
)

Member Data Documentation

◆ m_Category

string Attribute.m_Category

◆ m_DefValue

string Attribute.m_DefValue

◆ m_Desc

string Attribute.m_Desc

◆ m_Enums

ref ParamEnumArray Attribute.m_Enums

Only ints and floats are currently supported.

Array can be defined this way:

{ ParamEnum("Choice 1", "1"), ParamEnum("Choicen 2", "2") }
Definition: attributes.c:3

◆ m_Params

string Attribute.m_Params

Properties for UI in editor, depends on property type and used UI Widget.

  • for numeric types use format:"MIN_VALUE MAX_VALUE STEP" eg. "1 100 0.5", for min/max values can be used also inf / -inf as infinite
  • for file dialog use format "ext1;ext2"

◆ m_Precision

int Attribute.m_Precision

◆ m_UiWidget

string Attribute.m_UiWidget

use values from UIWidgets


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