(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><...") |
m |
||
Line 4: | Line 4: | ||
− | {{ScriptFunction|string|Type|{ get;}|Returns the type of the resource as a string|5= <pre>ResourceType = Space.GetResource("Resource Name").Type</pre>6=<pre></pre>}} | + | {{ScriptFunction|string|Type|{ get;}|Returns the type of the resource as a string|5= <pre>ResourceType = Space.GetResource("Resource Name").Type</pre>|6=<pre></pre>}} |
Returns the type of the resource as a string
ResourceType = Space.GetResource("Resource Name").Type
Converts the resource's type from SResource type to string
Text = Space.GetResource("Resource Name").AsText
GameObject = Space.GetResource("Resource Name").AsGameObject
Converts the resource's type from SResource to SMaterial
Material = Space.GetResource("Resource Name").AsMaterial
Returns the Texture Width of this resource
TextureWidth = Space.GetResource("Resource Name").TextureWidth
Returns the Texture Height of this resource
TextureHeight = Space.GetResource("Resource Name").TextureHeight
|