Last active
April 6, 2018 09:04
-
-
Save ronyx69/0fa4c20a170dfbd7c64fc2311b36a927 to your computer and use it in GitHub Desktop.
Changes the shader of a prop to additive in asset editor.
This file contains hidden or 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/Particles/Additive (Soft)"); | |
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment