wiki.sine.space | sinespace

Scripting/SCanvasGroup

From wiki.sine.space
Revision as of 07:06, 5 January 2021 by Edisonwu (Talk | contribs) (Created page with "=Members= {{ScriptFunction|float|NearClip|{get; set;}|Set the alpha of the group.|5= local Object = Space.Scene.Find("SCRIPT_OBJECT")<br> Space.Log(Object.CanvasGroup.Intera...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

NearClip

float NearClip {get; set;}

Set the alpha of the group.

local Object = Space.Scene.Find("SCRIPT_OBJECT")

Space.Log(Object.CanvasGroup.Interactable);

--print true.


BlocksRaycasts

bool BlocksRaycasts {get; set;}

Does this group block raycasting (allow collision)?

local Object = Space.Scene.Find("SCRIPT_OBJECT")

Space.Log(Object.CanvasGroup.BlocksRaycasts);

--print true.


IgnoreParentGroups

bool IgnoreParentGroups {get; set;}

Should the group ignore parent groups?

local Object = Space.Scene.Find("SCRIPT_OBJECT")

Space.Log(Object.CanvasGroup.IgnoreParentGroups);

--print false.


BlocksRaycasts

bool BlocksRaycasts {get; set;}

Is the group interactable (are the elements beneath the group enabled)?

local Object = Space.Scene.Find("SCRIPT_OBJECT")

Space.Log(Object.CanvasGroup.Interactable);

--print true.