wiki.sine.space | sinespace

Difference between revisions of "Scripting/SCanvasGroup"

From wiki.sine.space
Jump to: navigation, search
(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...")
(No difference)

Revision as of 07:06, 5 January 2021

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.