Visual objects
Topics
Functions
proto native int GetNumAnimFrames(vobject anim) | Returns number of frames, if the object is animation | |
proto native vobject GetObject(string name) | Loads object from data, or gets it from cache. Object must be released when not used | more… |
proto native void ReleaseObject(vobject object, int flag = 0) | Release object. When there are not any other references, object is stored into cache and ready to be victed if necessary. | more… |
proto string vtoa(vobject vobj) | Returns name of visual object |
Function Documentation
GetObject
Loads object from data, or gets it from cache. Object must be released when not used
Referenced by Particle.CreateParticleEffect(), ParticleList.PreloadParticles(), and ScriptModel.ScriptModel()
ReleaseObject
Release object. When there are not any other references, object is stored into cache and ready to be victed if necessary.
object- Object handle
flag- If RF_RELEASE is used, the object is evicted immediatelly, if not used by anyone else
Referenced by Particle.CreateParticleEffect(), ParticleList.PreloadParticles(), and ScriptModel.ScriptModel()