Finalize the parallax work

This commit is contained in:
Michal Pikulski
2025-12-17 22:54:24 +01:00
parent 867399c838
commit 7f5a229c3a
46 changed files with 3908 additions and 1246 deletions

View File

@@ -117,8 +117,12 @@ namespace Minigames.BirdPooper
/// </summary>
protected virtual void OnValidate()
{
// Skip validation for prefab assets (only run on scene instances)
if (UnityEditor.PrefabUtility.IsPartOfPrefabAsset(this))
return;
// Only run in editor, not during play mode
if (UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode)
if (Application.isPlaying || !Application.isEditor)
return;
EdgeAnchor anchor = GetComponent<EdgeAnchor>();