void IModule.UnloadModule() { if (StandalonePipeline != null) { Pose IdentityPoseMethod(Pose p) => p; StandalonePipeline.ResultFillStage.Transformation.applyOffsetToPose = IdentityPoseMethod; GroupPipeline.MemberResultFillStage.Transformation.applyOffsetToPose = IdentityPoseMethod; #if UNITY_EDITOR EditorOnlyEvents.onTemporalSimulationStart -= StandalonePipeline.ClearData; #endif StandalonePipeline.ClearData(); } GroupPipeline?.Clear(); StandalonePipeline = null; GroupPipeline = null; }
public void Clear() { StandalonePipeline.ClearData(); GroupPipeline.Clear(); }