Class SetComponentValueInContextEffector
Inheritance
SetComponentValueInContextEffector
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("Effector to put the value of a component field or property into a context", new string[] { "Context", "Unity/Context" })]
public class SetComponentValueInContextEffector : AUnityEffector
Constructors
SetComponentValueInContextEffector(Event, Dictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Declaration
public SetComponentValueInContextEffector(Event @event, Dictionary<string, Parameter> nameValueListMap, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Fields
COMPONENT
Declaration
public const string COMPONENT = "Component"
Field Value
COMPONENT_TYPE
Declaration
public const string COMPONENT_TYPE = "Component Type"
Field Value
CONTEXT_OUTPOUT
Declaration
public const string CONTEXT_OUTPOUT = "Output"
Field Value
MEMBER
Declaration
public const string MEMBER = "Member"
Field Value
component
GameObject component containing the script
Declaration
[Provider("Component Type")]
[ConfigurationParameter("Component", Necessity.Required)]
protected Component component
Field Value
componentType
Type of the script storing the variable to pass
Declaration
[ProvideConstraint(typeof(Component))]
[ConfigurationParameter("Component Type", Necessity.Required)]
protected Type componentType
Field Value
member
Member/Variable to pass in the context
Declaration
[Provider("Component Type")]
[ConfigurationParameter("Member", Necessity.Required)]
protected MemberInfo member
Field Value
tokenOutput
The variable of the context/token to set with the variable
Declaration
[ContextVariable("Output", "The output/context entry to set")]
protected ContextVariable<object> tokenOutput
Field Value
Methods
SafeEffectorUpdate()
Actual effector code. Note that this code will be executed in unity's thread
Declaration
public override void SafeEffectorUpdate()
Overrides