Skip to main content

SightAngle

Module: Inworld.Assets. Namespace: Inworld.Sample.

This class is attached to the InworldCharacter prefab for setting its sight and angle settings for use in the SampleMultiCharacter. scene

Inspector Variables

VariableDescription
HeadTransformThe transform of the avatar's head.
CameraTransformThe transform of the current camera.
SightAngleDetermines the size of the angle this InworldCharacter can see the PlayerController
SightDistanceDetermines the distance this InworldCharacter can see the PlayerController
Distance Priority FactorDetermines how much of an impact distance will make in the Priority calculation.
RefreshRateDetermines the frequency to update SightAngle and SightDistance.

Properties

PropertiesDescription
CharacterGet its character.
IsValidChecks if selecting characters by sight and angle is applied to this character.