Struct TargetInfo
Struct containing information about a target and the hit position.
public struct TargetInfo
- Inherited Members
Constructors
TargetInfo(Transform, Vector3)
Initializes a new instance of the TargetInfo struct.
public TargetInfo(Transform target, Vector3 hitPosition)
Parameters
targetTransformThe target transform.
hitPositionVector3The hit position.
Fields
HitPosition
The position where the target was hit.
public Vector3 HitPosition
Field Value
- Vector3
Target
The transform of the target.
public Transform Target
Field Value
- Transform