Show / Hide Table of Contents

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
UObject
ActorComponent
PawnSensingComponent
Inherited Members
ActorComponent.RegisterComponent()
ActorComponent.UnregisterComponent()
ActorComponent.ReceiveBeginPlay
ActorComponent.ReceiveEndPlay
ActorComponent.ReceiveTick
ActorComponent.Activate(Boolean)
ActorComponent.AddTickPrerequisiteActor(Actor)
ActorComponent.AddTickPrerequisiteComponent(ActorComponent)
ActorComponent.ComponentHasTag(Name)
ActorComponent.Deactivate()
ActorComponent.GetComponentTickInterval()
ActorComponent.GetOwner()
ActorComponent.IsActive()
ActorComponent.IsBeingDestroyed()
ActorComponent.IsComponentTickEnabled()
ActorComponent.K2_DestroyComponent(UObject)
ActorComponent.RemoveTickPrerequisiteActor(Actor)
ActorComponent.RemoveTickPrerequisiteComponent(ActorComponent)
ActorComponent.SetActive(Boolean, Boolean)
ActorComponent.SetAutoActivate(Boolean)
ActorComponent.SetComponentTickEnabled(Boolean)
ActorComponent.SetComponentTickInterval(Single)
ActorComponent.SetIsReplicated(Boolean)
ActorComponent.SetTickableWhenPaused(Boolean)
ActorComponent.SetTickGroup(Byte)
ActorComponent.ToggleActive()
ActorComponent.PrimaryComponentTick
ActorComponent.AssetUserData
ActorComponent.bReplicates
ActorComponent.bNetAddressable
ActorComponent.bAutoActivate
ActorComponent.bIsActive
ActorComponent.bEditableWhenInherited
ActorComponent.bCanEverAffectNavigation
ActorComponent.bIsEditorOnly
ActorComponent.bIsVisualizationComponent
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
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)
Namespace: UE4.AIModule
Assembly: UE4DotNet.dll
Syntax
public class PawnSensingComponent : ActorComponent
Remarks

It does nothing on network clients.

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
Type Description
PawnSensingComponent
| 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

Maximum sight distance.

Declaration
public float SightRadius { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

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
Type Name Description
UObject obj
Name name
Returns
Type Description
PawnSensingComponent
| 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
Type Description
PawnSensingComponent
  • Improve this Doc
  • View Source
Back to top Generated by DocFX