Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change building floor parameters for a sub-mesh.
var subMesh = 0;
var vec = new Vector4(0.0f, 3.1f, 3.0f, 900.1f);
var asset = (ToolsModifierControl.toolController.m_editPrefabInfo as BuildingInfo).m_subMeshes[subMesh].m_subInfo;
asset.m_material.SetVector("_FloorParams", vec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment