enableFromMeshes() public method

public enableFromMeshes ( Part part ) : void
part Part
return void
Example #1
0
        //restores texture set data and either loads default texture set or saved texture set (if any)
        private void initialize()
        {
            loadConfigData();
            TextureSet currentSet = Array.Find(textureSets, m => m.setName == currentTextureSet);

            currentSet.enableFromMeshes(part);
        }
Example #2
0
        //enables a specific texture set, by name
        public void enableTextureSet(String name)
        {
            TextureSet ts = Array.Find(textureSets, m => m.setName == name);

            if (ts != null)
            {
                ts.enableFromMeshes(part);
                currentTextureSet = name;
            }
        }