Re: How to replace one Texture with another Texture using code

by Puybaret » Sat May 28, 2016 4:30 pm

Textures in the textures catalog (i.e. Available Texture List in the user interface) are accessible by getTexturesCatalog method in preferences (see TextureChoiceComponent class) and each CatalogTexture instance has a name. To create a HomeTexture instance just use in parameter the instance of the CatalogTexture instance in the catalog with the name you want.
In case you didn't know it, have also a look to Change Texture Plugin which might give you some ideas.