|
|
(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}}
| + | |