Class PawnSensingComponent
SensingComponent encapsulates sensory (ie sight and hearing) settings and functionality for an Actor,
allowing the actor to see/hear Pawns in the world.
Inheritance
System.Object
PawnSensingComponent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class PawnSensingComponent : ActorComponent
Properties
|
Improve this Doc
View Source
bEnableSensingUpdates
Declaration
public bool bEnableSensingUpdates { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bHearNoises
Declaration
public bool bHearNoises { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOnlySensePlayers
Declaration
public bool bOnlySensePlayers { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bSeePawns
Declaration
public bool bSeePawns { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PawnSensingComponent DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
HearingMaxSoundAge
Max age of sounds we can hear. Should be greater than SensingInterval, or you might miss hearing some sounds!
Declaration
public float HearingMaxSoundAge { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
HearingThreshold
Max distance at which a makenoise(1.0) loudness sound can be heard, regardless of occlusion
Declaration
public float HearingThreshold { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
LOSHearingThreshold
Max distance at which a makenoise(1.0) loudness sound can be heard if unoccluded (LOSHearingThreshold should be > HearingThreshold)
Declaration
public float LOSHearingThreshold { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PeripheralVisionAngle
How far to the side AI can see, in degrees. Use SetPeripheralVisionAngle to change the value at runtime.
Declaration
public float PeripheralVisionAngle { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PeripheralVisionCosine
Cosine of limits of peripheral vision. Computed from PeripheralVisionAngle.
Declaration
public float PeripheralVisionCosine { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SensingInterval
Declaration
public float SensingInterval { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SightRadius
Declaration
public float SightRadius { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetPeripheralVisionAngle()
Get Peripheral Vision Angle
Declaration
public float GetPeripheralVisionAngle()
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetPeripheralVisionCosine()
Get Peripheral Vision Cosine
Declaration
public float GetPeripheralVisionCosine()
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static PawnSensingComponent New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
SetPeripheralVisionAngle(Single)
Sets PeripheralVisionAngle. Calculates PeripheralVisionCosine from PeripheralVisionAngle
Declaration
public void SetPeripheralVisionAngle(float NewPeripheralVisionAngle)
Parameters
Type |
Name |
Description |
System.Single |
NewPeripheralVisionAngle |
|
|
Improve this Doc
View Source
SetSensingInterval(Single)
Declaration
public void SetSensingInterval(float NewSensingInterval)
Parameters
Type |
Name |
Description |
System.Single |
NewSensingInterval |
|
|
Improve this Doc
View Source
SetSensingUpdatesEnabled(Boolean)
Enables or disables sensing updates. The timer is reset in either case.
Declaration
public void SetSensingUpdatesEnabled(bool bEnabled)
Parameters
Type |
Name |
Description |
System.Boolean |
bEnabled |
|
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to PawnSensingComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator PawnSensingComponent(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns