![]() |
PiXYZ Plugin for Unity
Scripting API Documentation
|
Public Member Functions | |
virtual string [] | getErrors () |
virtual string [] | getWarnings () |
virtual string [] | getInfos () |
virtual void | onBeforeDraw () |
void | initialize () |
object | invoke (object data) |
Public Attributes | |
bool | isInRuleEngine => !string.IsNullOrEmpty(menuPathRuleEngine) |
bool | isInToolbox => !string.IsNullOrEmpty(menuPathToolbox) && inputType == typeof(IList<GameObject>) && outputType == typeof(IList<GameObject>) |
Properties | |
abstract int | id [get] |
virtual string | menuPathRuleEngine [get] |
virtual string | menuPathToolbox [get] |
virtual string | tooltip [get] |
abstract Type | inputType [get] |
abstract Type | outputType [get] |
FieldInstance [] | fieldInstances [get] |
MethodInfo [] | helpersMethods [get] |
string | displayNameRuleEngine [get] |
string | displayNameToolbox [get] |
This is the very base class for all RuleEngine and Toolbox Actions.
|
virtual |
Virtual method for Error checks before execution.
Returning a non null string array will display each string as an Error on the RuleEngine and Toolbox.
|
virtual |
Virtual method for Info checks before execution.
Returning a non null string array will display each string as an Information on the RuleEngine and Toolbox.
|
virtual |
Virtual method for Warning checks before execution.
Returning a non null string array will display each string as a Warning on the RuleEngine and Toolbox.
void initialize | ( | ) |
Initialize parameters from RuleEngineParameters attributes.
object invoke | ( | object | data | ) |
Runs the action through reflection
data |
Takes the generic type Builds an instance an run !
|
virtual |
Virtual method for implementing operations before the Action gets drawn in the RuleEngine or the Toolbox.
bool isInRuleEngine => !string.IsNullOrEmpty(menuPathRuleEngine) |
Returns true if this Action is available trough the RuleEngine.
bool isInToolbox => !string.IsNullOrEmpty(menuPathToolbox) && inputType == typeof(IList<GameObject>) && outputType == typeof(IList<GameObject>) |
Returns true if this Action is available trough the Toolbox.
|
get |
Returns the display name (without menu path).
|
get |
Returns the display name (without menu path)
|
get |
Eventual fields.
Fields can be added for an Action implementation thanks to the attribute PiXYZ.Plugin.Unity.Tools.UserParameter.
|
get |
Eventual helper methods.
Helper methods can be added for an Action implementation thanks to the attribute PiXYZ.Plugin.Unity.Tools.HelperMethod.
|
get |
The id of the Acton implementation.
This id should be unique and is readonly (written in code). The id is the actual reference if the Action is serialized (in a set of RuleEngine Rules for example), hence, this shouldn't be changed if possible when someone uses it.
|
get |
Specifies what kind of data enters your actions.
(Eg: IList<GameObject>, IList<Material>, Mesh, string[], ...)
|
get |
The menu path for the RuleEngine.
Use forward slashes for submenus (ex:"Custom/My Custom Action") If left null or empty, this Action won't be listed in the RuleEngine.
|
get |
The menu path for the Toolbox.
Use forward slashes for submenus (ex:"Custom/My Custom Action") If left null or empty, this Action won't be listed in the Toolbox.
|
get |
Specifies what kind of data the actions outputs.
(Eg: IList<GameObject>, IList<Material>, Mesh, string[], ...)
|
get |
Returns the tooltip.