Created
June 10, 2017 17:53
-
-
Save ronyx69/bfd09d2a7cddad6c71d407c74e45bb71 to your computer and use it in GitHub Desktop.
Change floor parameters for Vehicle shaders 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 asset = ToolsModifierControl.toolController.m_editPrefabInfo as VehicleInfo; | |
var vec = new Vector4(0.0f, 5.0f, 0.0f, 0.0f); // (foundation, floor height, width, length) | |
asset.m_material.SetVector("_FloorParams", vec); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment