Component:ToolSimulator

From Resonite Wiki
Revision as of 13:57, 12 January 2024 by Nytra (talk | contribs) (Add some info about the ToolSimulator component)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The ToolSimulator component allows a tool to be used without needing it to be equipped by a user. You can make use of a tool's primary and secondary actions but not context menu actions.

You need to provide a reference to the tool component that you want to simulate, and also a reference to a simulating user. You can then make use of the Primary, Secondary, Strength and Axis properties.

For example, providing a reference to a MaterialTool and then making use of the Primary property will allow you to apply materials to objects in front of the tool.