MagicaSettings

Overview


A component that modifies the system.
Changes are usually controlled from scripts using APIs, but by using this component, changes can be made without coding.

To add it, attach the MagicaSettings script to the GameObject, or open the right-click menu in the hierarchy window and select CreateOther/MagicaCloth2/MagicaSettings.

Properties


Refresh Mode

Tells when to send the contents of the component to the system.

OnAwake
Properties are sent to the system only once when the component is created.

EveryFrame
Properties are sent to the system every frame.

Simulation Frequency

simulation frequency.
Specifies how many times to run the simulation per second.
The frequency is directly linked to the accuracy of the simulation.
However, the higher the frequency, the higher the load.

See the performance article for more details.

Max Simulation Count Per Frame

Maximum number of updates per frame.
Since the simulation is executed according to a time schedule different from the frame rate, in some cases the simulation may be executed several times per frame.
The load increases as the number of simulations executed in one frame increases.
Therefore, it is possible to limit the maximum number of simulations that can be executed.
If the simulation is omitted due to restrictions, the position is supplemented by the interpolation function.

See the performance article for more details.

Update Location

Where to run the simulation.

After Late Update
Simulation runs after LateUpdate.

Before Late Update
The simulation is run before LateUpdate.
This is required when using 2DAnimation.

See Lifecycle for information on Unity’s event execution order.