Skip to content

Interaction

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

Interaction

Namespace: TommoJProductions.ModApi.Interactions

Represents a base interaction.

public abstract class Interaction : UnityEngine.MonoBehaviour

Inheritance Object → Object → Component → Behaviour → MonoBehaviour → Interaction

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

use(Boolean)

shows/hides the interaction text.

public bool use(bool mouseOver)

Parameters

mouseOver Boolean

Returns

Boolean

use(String, Boolean)

shows/hides the interaction text with an override for the text.

public bool use(string interactionString, bool mouseOver)

Parameters

interactionString String

mouseOver Boolean

Returns

Boolean

Clone this wiki locally