Class ObjectCollidingWithTagSensor
Inheritance
ObjectCollidingWithTagSensor
Assembly: Xareus.Unity.Libraries.dll
[FunctionDescription("Detects a collision of the first object with any of the objects tagged with the given tag.\nWhen activated, the event context will one of the other colliding object with the supplied tag in the 'object2' path ", new string[] { "Unity", "Collisions", "Unity/Collisions" })]
public class ObjectCollidingWithTagSensor : AInUnityStepSensor
Constructors
ObjectCollidingWithTagSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public ObjectCollidingWithTagSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
Declaration
[EventContextEntry]
public static readonly string OBJECT1
Field Value
Declaration
[EventContextEntry]
public static readonly string OBJECT2
Field Value
Declaration
[ConfigurationParameter("Object", Necessity.Required)]
protected GameObject Object
Field Value
| Type |
Description |
| GameObject |
|
The tag of the objects to detect collisions with
Declaration
[ConfigurationParameter("Tag", "The tag of the objects to detect collisions with.", Necessity.Required)]
protected Tag Tag
Field Value
Methods
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
This method is called at each selected Unity execution step in Unity's thread. The Unity execution steps used depend on the ExecutionStep property
Declaration
public override ASensor.Result UnityStepSensorCheck()
Returns
Overrides