Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Last active April 12, 2017 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronyx69/69130ffd46ab3573f0968aedd11c88eb to your computer and use it in GitHub Desktop.
Save ronyx69/69130ffd46ab3573f0968aedd11c88eb to your computer and use it in GitHub Desktop.
Script for creating your own theme decals.
// You MUST use a unique diffuse texture (put whatever texture in it) to avoid unforeseen consequences!
// Import a decal or a big decal as usual and run this script using the texture tag you want:
//themedecal-grass
//themedecal-cliff
//themedecal-sand
//themedecal-gravel
//themedecal-ruined
//themedecal-oil
//themedecal-ore
//themedecal-pavement
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo;
asset.m_mesh.name="themedecal-grass"; //CHANGE THE TAG HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment