Skip to main content

TargetPointer

A class in Root.Township, Alta.Intelligence.

Component that points at a Target elsewhere on the prefab, so code looking up an ITargetPointer on this object finds that target.

Constructors​

MemberWhat it is
TargetPointer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private Target targetSerialized backing field for Target.

Properties​

MemberWhat it is
ITarget Target { get; }The target pointed at.

Methods​

1 private and internal method
MemberWhat it is
private void Find()Editor context menu "Find in children": sets target to the first Target in the children.