Contents
Overview
There is only one MagicaManager in the MagicaCloth system class.
Settings made to MagicaManager affect the entire system.
The Manager can be accessed as follows
{
MagicaManager.SetGlobalTimeScale(magicaGlobalTimeScale);
}
Properties
OnPreSimulation
/// <summary>
/// シミュレーション開始前イベント
/// Pre-simulation event.
/// </summary>
public static Action OnPreSimulation;
OnPostSimulation
/// <summary>
/// シミュレーション完了後イベント
/// Post-simulation event.
/// </summary>
public static Action OnPostSimulation;
Methods
SetGlobalTimeScale
/// <summary>
/// グローバルタイムスケールを変更します
/// Change the global time scale.
/// </summary>
/// <param name="timeScale">0.0-1.0</param>
public static void SetGlobalTimeScale(float timeScale)
GetGlobalTimeScale
/// <summary>
/// グローバルタイムスケールを取得します
/// Get the global time scale.
/// </summary>
/// <returns></returns>
public static float GetGlobalTimeScale()