wiki.sine.space | sinespace

Scripting/SAttachmentHelper

From wiki.sine.space
Revision as of 03:26, 13 October 2021 by Voidtech (Talk | contribs)

Jump to: navigation, search

Properties

Enabled

bool Enabled [get, set]

Returns true if the Attachment Helper Enabled.

Space.Host.ExecutingObject.AttachmentHelper.Enabled = false


--clicking this object will Enable/Disable it's Attachment Helper component
thisGameObject = Space.Host.ExecutingObject
attachmenthelper = thisGameObject.AttachmentHelper


OnClick = function()
attachmenthelper.Enabled =  not attachmenthelper.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)
)