Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scripts for changing UI priority for the main prefab types. Determines item order in the menus.
// props
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo;
asset.m_UIPriority = 1;
// trees
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as TreeInfo;
asset.m_UIPriority = 1;
// buildings
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as BuildingInfo;
asset.m_UIPriority = 1;
// networks
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as NetInfo;
asset.m_UIPriority = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment