private void OnEnable() { NameTag.RegisterForNameTagCallbacks(NameTagCallback); if (pp_layer != null && pp_layer.haveBundlesBeenInited) { pp_layer.ResetHistory(); } }
static void OnCameraCut(CinemachineBrain brain) { // Debug.Log("Camera cut event"); PostProcessLayer postFX = GetPPLayer(brain); if (postFX != null) { postFX.ResetHistory(); } }
private static void OnCameraCut(CinemachineBrain brain) { PostProcessLayer ppLayer = CinemachinePostProcessing.GetPPLayer(brain); if (!Object.op_Inequality((Object)ppLayer, (Object)null)) { return; } ppLayer.ResetHistory(); }
private static void OnCameraCut(CinemachineBrain brain) { PostProcessLayer postProcessLayer = brain.PostProcessingComponent as PostProcessLayer; if (postProcessLayer == null) { brain.PostProcessingComponent = null; return; } postProcessLayer.ResetHistory(); }
static void OnCameraCut(CinemachineBrain brain) { // Debug.Log("Camera cut event"); PostProcessLayer postFX = brain.PostProcessingComponent as PostProcessLayer; if (postFX == null) { brain.PostProcessingComponent = null; // object deleted } else { postFX.ResetHistory(); } }