Entity type tools
ProBuilder provides some default entity behaviors. These are MonoBehaviours that provide some commonly used functionality.
Note: These tools are only available from the The ProBuilder toolbar in text mode.
Set Trigger
The Set Trigger tool assigns the Trigger Behaviour script to selected objects, which does the following:
- If no collider is present, the Trigger Behaviour script adds a MeshCollider component.
- If the collider is a Mesh Collider, the Trigger Behaviour script enables its Convex property.
- The Trigger Behaviour script enables the collider's isTrigger property.
- The Trigger Behaviour script sets the Mesh Renderer Material to ProBuilder's Trigger Material.
- The Trigger Behaviour script automatically disables the Mesh Renderer when you enter Play Mode or build your project.
Tip: You can also use the T hotkey to set the selected object(s) as a trigger. If you want to change this hotkey assignment, you can modify it in the ProBuilder Preferences Shortcut Settings.
Set Collider
The Set Collider tool assigns the Collider Behaviour script to selected objects, which does the following:
- If no collider is present, the Collider Behaviour script adds a MeshCollider component.
- The Collider Behaviour script sets the MeshRenderer Material to ProBuilder's Collider Material.
- The Collider Behaviour script automatically disables the MeshRenderer when you enter Play Mode or build your project.
Tip: You can also use the C hotkey to set the selected object(s) as a collider. If you want to change this hotkey assignment, you can modify it in the ProBuilder Preferences Shortcut Settings.