private void OnEnable() { m_PreviewPosition = 0; m_ObjectMovingAlongPath = target as ObjectMovingAlongPath; if (!EditorApplication.isPlayingOrWillChangePlaymode) { ObjectMovingAlongPathPreview.CreateNewPreview(m_ObjectMovingAlongPath); } }
private void OnDisable() { ObjectMovingAlongPathPreview.DestroyPreview(); }