Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SceneView.onSceneGUIDelegate obsolete #33

Open
lazlo-bonin opened this issue Nov 7, 2019 · 1 comment
Open

SceneView.onSceneGUIDelegate obsolete #33

lazlo-bonin opened this issue Nov 7, 2019 · 1 comment

Comments

@lazlo-bonin
Copy link

lazlo-bonin commented Nov 7, 2019

In the build project's SceneViewBuildButton, the SceneView.onSceneGUIDelegate callback registration is obsolete (since I believe 2019.1).

To eliminate the warning it should be wrapped around:

        [InitializeOnLoadMethod]
        private static void Init()
        {
#if UNITY_2019_1_OR_NEWER
            SceneView.duringSceneGui += DrawButtons;
#else
            SceneView.onSceneGUIDelegate += DrawButtons;
#endif
        }
@evie-online
Copy link

Hey, I know this is a super old comment. A bit of a Unity newbie here, what do you mean when you say "it should be wrapped around"? Like, are you saying that code should be added to the EditorHelper.cs file where the error originates? And where in the file should it be copied to? I'm already more familiar with ProBuilder & Polybrush, but I remember trying SabreCSG out years ago & finding it useful to have around in addition to the other tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants