wiki.sine.space | sinespace

Difference between revisions of "Scripting/SUIRaycastResult"

From wiki.sine.space
Jump to: navigation, search
(Created page with " {{ScriptFunction|void|Clear|();|Definition||5=<pre></pre>|6=<pre></pre>}} {{ScriptFunction|string|ToString|();|Converts all the properties of this UIRaycastResult into a str...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/suiraycastresult")
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/suiraycastresult
{{ScriptFunction|void|Clear|();|Definition||5=<pre></pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|string|ToString|();|Converts all the properties of this UIRaycastResult into a string||5=<pre>Result = Space.UI.Raycast().ToString()</pre>|6=<pre>--This script will update a UIText element with the result of a UIRaycast whenever...
+
--the player clicks on a Sinespace UI element
+
thisObject = Space.Host.ExecutingObject
+
uiText = Space.Host.GetReference("text").UIText --Add this object with UIText component as reference in Scripting Runtime
+
 
+
 
+
 
+
OnUpdate = function()
+
 
+
  if Space.Input.GetMouseDown(0) == true then
+
  result = Space.UI.Raycast()
+
    if result.IsValid then
+
      uiText = result.ToString()
+
    end
+
  end
+
end
+
 
+
 
+
thisObject.OnUpdate(OnUpdate)</pre>}}
+
 
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
{{ScriptFunction|void|YYY|{ get;set; }|description|5=<pre></pre>|6=<pre></pre>}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 08:07, 19 September 2022

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