Change the shader of a prop to Fence 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/Props/Prop/Fence");|
|var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo;|
|if(asset.m_material != null) asset.m_material.shader = shader;|
|if(asset.m_lodMaterial != null) asset.m_lodMaterial.shader = shader;|
|asset.m_requireHeightMap = true;|