wiki.sine.space | sinespace

Scripting/SResource

From wiki.sine.space
Revision as of 06:14, 21 September 2021 by Voidtech (Talk | contribs) (Created page with " =Properties= {{ScriptFunction|string|Type|{ get;}|Returns the type of the resource as a string|5= <pre>ResourceType = Space.GetResource("Resource Name").Type</pre>6=<pre><...")

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


Properties

Type

string Type { get;}

Returns the type of the resource as a string

ResourceType = Space.GetResource("Resource Name").Type
6=



AsText

string AsText { get; }

Converts the resource's type from SResource type to string

Text = Space.GetResource("Resource Name").AsText



AsGameObject

SGameObject AsGameObject { get;}


GameObject = Space.GetResource("Resource Name").AsGameObject



AsMaterial

SMaterial AsMaterial { get; }

Converts the resource's type from SResource to SMaterial

Material = Space.GetResource("Resource Name").AsMaterial



TextureWidth

float TextureWidth { get; }

Returns the Texture Width of this resource

TextureWidth = Space.GetResource("Resource Name").TextureWidth



TextureHeight

float TextureHeight { get; }

Returns the Texture Height of this resource

TextureHeight = Space.GetResource("Resource Name").TextureHeight