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...")
 
 
Line 1: Line 1:
=Members=
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scanvasgroup
 
+
{{ScriptFunction|float|NearClip|{get; set;}|Set the alpha of the group.|5=
+
local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
+
Space.Log(Object.CanvasGroup.Interactable);<br>
+
''--print true.''<br>
+
}}
+
 
+
{{ScriptFunction|bool|BlocksRaycasts|{get; set;}|Does this group block raycasting (allow collision)?|5=
+
local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
+
Space.Log(Object.CanvasGroup.BlocksRaycasts);<br>
+
''--print true.''<br>
+
}}
+
 
+
{{ScriptFunction|bool|IgnoreParentGroups|{get; set;}|Should the group ignore parent groups?|5=
+
local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
+
Space.Log(Object.CanvasGroup.IgnoreParentGroups);<br>
+
''--print false.''<br>
+
}}
+
 
+
{{ScriptFunction|bool|BlocksRaycasts|{get; set;}|Is the group interactable (are the elements beneath the group enabled)?|5=
+
local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
+
Space.Log(Object.CanvasGroup.Interactable);<br>
+
''--print true.''<br>
+
}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 05:28, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scanvasgroup