Skip to content

TriggerData

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

TriggerData

Namespace: TommoJProductions.ModApi.Attachable

. Parts (Part.triggerData) can be installed to triggers (TriggerCallback.triggerData) that have the same TriggerData.

public class TriggerData : UnityEngine.ScriptableObject

Inheritance Object → Object → ScriptableObject → TriggerData

Properties

id

Represents the ID of this TriggerData.

public string id { get; }

Property Value

String

name

public string name { get; set; }

Property Value

String

hideFlags

public HideFlags hideFlags { get; set; }

Property Value

HideFlags

Constructors

TriggerData()

public TriggerData()

Methods

createTriggerData(String)

Creates a new instance of trigger data with an id of .

public static TriggerData createTriggerData(string id)

Parameters

id String
The ID of this trigger data.

Returns

TriggerData

Clone this wiki locally