Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Created June 10, 2017 17:53
Show Gist options
  • Save ronyx69/bfd09d2a7cddad6c71d407c74e45bb71 to your computer and use it in GitHub Desktop.
Save ronyx69/bfd09d2a7cddad6c71d407c74e45bb71 to your computer and use it in GitHub Desktop.
Change floor parameters for Vehicle shaders in asset editor.
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