Class ObjectClickedSensor
Inheritance
ObjectClickedSensor
Assembly: Xareus.Unity.Librairies.dll
Syntax
[Renamed("SEVEN.Unity.ObjectClickedSensor", "Assembly-CSharp")]
public class ObjectClickedSensor : AInUnityStepSensor
Constructors
ObjectClickedSensor(Event, Dictionary<string, Parameter>, IContext, IContext, IContext)
Declaration
public ObjectClickedSensor(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext)
Parameters
Fields
Declaration
[EventContextEntry]
public static readonly string MOUSE_BUTTON
Field Value
ON_RELEASE
Declaration
[EventContextEntry]
public static readonly string ON_RELEASE
Field Value
TARGET
Declaration
[EventContextEntry]
public static readonly string TARGET
Field Value
Declaration
[ConfigurationParameter("Mouse Button", "The mouse button to check", Necessity.Required)]
protected int button
Field Value
eventContext
Declaration
protected SimpleDictionary eventContext
Field Value
onRelease
Declaration
[ConfigurationParameter("On Release", "Trigger when the click is released while on the target", Necessity.Required)]
protected bool onRelease
Field Value
target_object
Declaration
[ConfigurationParameter("Target", "The target object that will trigger the sensor", Necessity.Required)]
protected GameObject target_object
Field Value
Type |
Description |
GameObject |
|
Methods
SafeReset()
Reset a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeReset()
Overrides
UnityStepSensorCheck()
Checks the raycast and the button state
Declaration
public override ASensor.Result UnityStepSensorCheck()
Returns
Overrides