Class KaijuEverythingVisionSensor
KaijuVisionSensor<T> based on transforms, allowing it to see anything. You can optionally filter objects by name to limit what is returned. While this KaijuSensor can be highly versatile, if performance is a concern, it is recommended to extend KaijuVisionSensor<T> for a specific component type you are interested in rather than using this.
Inherited Members
Namespace: KaijuSolutions.Agents.Sensors
Syntax
public class KaijuEverythingVisionSensor : KaijuVisionSensor<Transform>
Properties
Matcher
What to match names of the objects to provide extra filtering. Note this only applies to collecting default observables and not if you set any observables explicitly.
Declaration
public List<KaijuAgentsMultiMatcher> Matcher { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<KaijuAgentsMultiMatcher> |
Methods
DefaultObservables()
If there are no explicitly defined observable objects, define how to query for default observables.
Declaration
protected override IEnumerable<Transform> DefaultObservables()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Transform> | All active instances. |
Overrides
Operators
Implicit(GameObject to KaijuEverythingVisionSensor)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuEverythingVisionSensor(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuEverythingVisionSensor | The KaijuEverythingVisionSensor attached to the GameObject if there was one. |
Implicit(KaijuEverythingVisionSensor to KaijuAgent)
Implicit conversion to a KaijuAgent.
Declaration
public static implicit operator KaijuAgent(KaijuEverythingVisionSensor s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuEverythingVisionSensor | s |
Returns
| Type | Description |
|---|---|
| KaijuAgent | The KaijuAgent attached to the KaijuEverythingVisionSensor if there was one. |
Implicit(Transform to KaijuEverythingVisionSensor)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuEverythingVisionSensor(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuEverythingVisionSensor | The KaijuEverythingVisionSensor attached to the transform if there was one. |