wiki.sine.space | sinespace

Scripting/SUIRaycastResult

From wiki.sine.space
Revision as of 17:35, 7 January 2022 by Voidtech (Talk | contribs) (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...")

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

Clear

void Clear ();

Definition


ToString

string ToString ();

Converts all the properties of this UIRaycastResult into a string

Result = Space.UI.Raycast().ToString()


--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)

YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description


YYY

void YYY { get;set; }

description