public void DebugMenuGUI() { _textureDimension.OnGUI(); sampler.DebugMenuGUI(); if (GUILayout.Button("Recreate")) { RecreateTexture(ref _texture, (int)_textureDimension.Get().x, (int)_textureDimension.Get().y); receiver.targetTexture = _texture; sampler.targetRenderTexture = _texture; } }