15.02.2017, 04:38
Best method for texture scripting
Method 1 :
PHP Code:
SetObjectMeterial(CreateObject(),....);
SetObjectMeterial(CreateObject(),....);
Method 2 :
PHP Code:
new Texture;
Texture =CreateObject();
SetObjectMeterial(Texture,...);
Texture =CreateObject();
SetObjectMeterial(Texture,...);
Method 3 :
PHP Code:
new Texture[2];
Texture[0] =CreateObject();
SetObjectMeterial(Texture[0],...);
Texture[1] =CreateObject();
SetObjectMeterial(Texture[1],...);
Please let me know, which one will be good and why?

