From 9235727383649024cab244801b4849459fd5b52a Mon Sep 17 00:00:00 2001 From: Oliver Biwer Date: Fri, 3 Nov 2023 22:39:00 +0100 Subject: [PATCH] removal of mistakenly included function --- .../AtomBaseVariableInstancer.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Packages/Core/Runtime/VariableInstancers/AtomBaseVariableInstancer.cs b/Packages/Core/Runtime/VariableInstancers/AtomBaseVariableInstancer.cs index ee49e710..b8842fbd 100644 --- a/Packages/Core/Runtime/VariableInstancers/AtomBaseVariableInstancer.cs +++ b/Packages/Core/Runtime/VariableInstancers/AtomBaseVariableInstancer.cs @@ -30,22 +30,6 @@ namespace UnityAtoms /// public V Variable { get => _inMemoryCopy; } - public void SetSource(V variable) - { - _base = variable; - if (Application.isPlaying) - { - Debug.LogWarning("Setting the underlying variable of an instancers at runtime can result in hard to find issues. be careful."); - if (_inMemoryCopy != null) - { - Destroy(_inMemoryCopy); - _inMemoryCopy = null; - } - OnEnable(); - } - - } - /// /// Getter for retrieving the value of the in memory runtime variable. ///