Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have attached an action to a object to load a texture dynamically via scripting. and a javascript command of cleaning memory to remove unused texture. even when i deleted the original texture file from my pc... and even after executing the command Clean memory.. the texture still shows up... while it should have been cleaned up.. is this bug or what? or isn't there a command to reload texture via javascript. |
||||
|
Hm, no, sorry there is no way to do that using JavaScript. Textures are assumed to be static and cached for that. A workaround would be to rename the texture on disk (or copy it), so that it has a new name, but that's probably not feasible. |
||||
|
then i will add this as a feature request to have javascript command like ccbReloadTexture9"texturefillename")this can be usefull if a person wants to change texture of a scenenode dynamically,,, deleting and renaming the texture isn't working in my case.... |
||||
|
Noted. I'll see if this can be done. |
|