Skip to content

Instantly share code, notes, and snippets.

Created June 10, 2017 17:53
What would you like to do?
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