Esempio n. 1
0
        private void RestorePositionAfterPreview()
        {
            DrivenPropertyManager.UnregisterProperties(this);
            EditorGUIUtility.beginProperty -= BeginDrivenPropertyCheck;

            if (m_PreviewBackupPosition.HasValue)
            {
                if (target is TrailRenderer tr)
                {
                    tr.Clear();
                }
                m_PreviewBackupPosition = null;
            }

            Tools.hidden = false;
        }
 public static void UnregisterProperties(Object driver) => DrivenPropertyManager.UnregisterProperties(driver);