Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Created May 1, 2019 12:57
Show Gist options
  • Save ronyx69/f2e0cbf28d41c2f04d2eac62fe995e4b to your computer and use it in GitHub Desktop.
Save ronyx69/f2e0cbf28d41c2f04d2eac62fe995e4b to your computer and use it in GitHub Desktop.
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