Last active
May 14, 2018 14:20
-
-
Save ronyx69/24a430d610fe5bb2070c1a9cbb793e0d to your computer and use it in GitHub Desktop.
Change the shader of a building to NoBase in asset editor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shader = Shader.Find("Custom/Buildings/Building/NoBase"); | |
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as BuildingInfo; | |
if(asset.m_material != null) asset.m_material.shader = shader; | |
if(asset.m_lodMaterial != null) asset.m_lodMaterial.shader = shader; | |
asset.m_requireHeightMap = false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment