private void OnEnable()
        {
            Undo.undoRedoPerformed   += OnUndoRedo;
            SceneView.duringSceneGui += DuringSceneGUI;
            instance     = target as GTextureStamper;
            Tools.hidden = true;

            instance.Internal_UpdateFalloffTexture();
            instance.Internal_UpdateLayerTransitionTextures();
            previewPropertyBlock = new MaterialPropertyBlock();
            GCommon.RegisterBeginRender(OnCameraRender);
            GCommon.RegisterBeginRenderSRP(OnCameraRenderSRP);

            GCommon.UpdateMaterials(instance.GroupId);
            UpdatePreview();
        }