Drag[en]gine Script Module DragonScript Script API 1.0
Immutable skin resources. More...
|Normalized filename the skin has been loaded from. More...|
|Number of textures. More...|
|int||indexOfTextureNamed (String name)|
|Index of named texture or -1 if absent. More...|
|String||getTextureName (int texture)|
|Name of texture at index. More...|
|bool||equals (Object other)|
|Skin is equal to another object. More...|
|Hash code for use as dictionary keys. More...|
|Skin||new (String filename)|
|Load skin from file. More...|
|static void||loadAsynchron (String filename, ResourceNotifier notifier)|
|Load skin from file asynchronously. More...|
Immutable skin resources.
Skin resources provide the material properties for meshes to render components with.
This is a native class. It can not be subclassed.
Normalized filename the skin has been loaded from.
Number of textures.
Name of texture at index.
|EOutOfBoundary||texture is less than 0 or greater than or equal to getTextureCount().|
Hash code for use as dictionary keys.
Index of named texture or -1 if absent.
Load skin from file asynchronously.
Registers a request in the game engine to load an skin. Once finished or if the file is already loaded the notifier is used to deliver the loaded skin or null if the loading failed.
Load skin from file.
If the skin file has been already loaded it is assigned to this object. If the skin is not loaded yet the engine loads the skin. This call blocks until the skin is fully loaded and ready to be used. For asynchronous loading use loadAsynchron(). Multiple objects can point to the same loaded skin resource. Once no object instance uses an skin file anymore it is released from memory.