Skip to content

InteractionRaycast

Tommo J. Phillips edited this page Oct 22, 2023 · 3 revisions

InteractionRaycast

Namespace: TommoJProductions.ModApi.Interactions

Represents an interaction by raycast. []. Interaction functions are called when the player is looking at a gameobject with an InteractionRaycast. Only runs logic when the player is looking at it, otherwise nothing is executed. Helps prevent lot of unity runtime update calls.

public abstract class InteractionRaycast : Interaction

Inheritance Object → Object → Component → Behaviour → MonoBehaviour → InteractionInteractionRaycast

Properties

interactionString

Represents the string to use.

public virtual string interactionString { get; }

Property Value

String

useGUILayout

public bool useGUILayout { get; set; }

Property Value

Boolean

enabled

public bool enabled { get; set; }

Property Value

Boolean

isActiveAndEnabled

public bool isActiveAndEnabled { get; }

Property Value

Boolean

transform

public Transform transform { get; }

Property Value

Transform

gameObject

public GameObject gameObject { get; }

Property Value

GameObject

tag

public string tag { get; set; }

Property Value

String

name

public string name { get; set; }

Property Value

String

hideFlags

public HideFlags hideFlags { get; set; }

Property Value

HideFlags

Methods

onInteractionEnter()

Invokes on interaction enter.

public virtual void onInteractionEnter()

onInteractionUpdate()

Invokes on interaction update.

public virtual void onInteractionUpdate()

onInteractionExit()

Invokes on interaction exit.

public virtual void onInteractionExit()

OnDisable()

Unity runtime on disable.

public virtual void OnDisable()
Clone this wiki locally