Skip to content

DisassembleBehaviour

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

DisassembleBehaviour

Namespace: TommoJProductions.ModApi.Attachable

public class DisassembleBehaviour : TommoJProductions.ModApi.Interactions.InteractionRaycast

Inheritance Object → Object → Component → Behaviour → MonoBehaviour → InteractionInteractionRaycastDisassembleBehaviour

Fields

part

public Part part;

Properties

guiCheck

Represents the gui check.

public static bool guiCheck { get; }

Property Value

Boolean

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

Constructors

DisassembleBehaviour()

public DisassembleBehaviour()

Methods

OnDisable()

unityruntime on disable.

public virtual void OnDisable()

onInteractionUpdate()

Occurs when the player looks at this interaction.

public virtual void onInteractionUpdate()

onInteractionExit()

Occurs when the player was looking at this interaction but now isnt.

public virtual void onInteractionExit()

colliderCheck()

Checks if the player is looking at a collider. (eg => parts collider). used for disassemble logic. if PartSettings.disassembleCollider does not equal , uses that collider, otherwise uses the parts collider.

protected virtual bool colliderCheck()

Returns

Boolean

Clone this wiki locally