UnitySceneViewFovControl icon indicating copy to clipboard operation
UnitySceneViewFovControl copied to clipboard

Gizmo dissapears

Open t-mat opened this issue 8 years ago • 9 comments

Unity5.5.1p4でUnitySceneViewFovControlをインストールすると、シーンビュー中でカメラ等のギズモが使えなくなる(表示されなくなる)のは仕様でしょうか?可能なら使えたほうがいいですね。

t-mat avatar Feb 25 '17 17:02 t-mat

SceneViewHiddenApiExtension.PopGUIClips and PushGUIClips cause this issue.

todo : Investigate an actual reason.

t-mat avatar Feb 27 '17 23:02 t-mat

We're getting that issue also... I tried to debug it but couldn't solve it. It looks like when using GUIClip code, it will mess with something else internally: sceneviewfovissue Here I added a GUILayout.Button after the DoToolbarRightSideGUI call, and depending on the usage of GUIClip.Push/Pop, the button shows in 2D or 3D. Maybe that can help?

Note: tested in Unity 5.5.0

jean-moreno avatar Apr 11 '17 06:04 jean-moreno

Update: I added Handles.BeginGUI and Handles.EndGUI to fix the problem:

static void OnSceneGUI(SceneView sceneView) {
	Status s = GetOrAddStatus(sceneView);
	if(s != null) {
		Handles.BeginGUI();
		s.OnSceneGUI(sceneView);
		Handles.EndGUI();
	}
}

It seems to work!

jean-moreno avatar Apr 11 '17 06:04 jean-moreno

Thanks for the info and taking your time! I'll check your code.

t-mat avatar Apr 11 '17 15:04 t-mat

@jean-moreno I've updated release binary. I keep opening this issue for now, but I'll close when it passes some tests.

t-mat avatar Apr 12 '17 17:04 t-mat

0.1.8 contains this patch.

t-mat avatar Apr 29 '17 20:04 t-mat

Weird, with Unity 2017 (latest stable), I run into the same problem, the gizmo (the FOV button in scene view) doesn't show up for some reason.

screen shot 2017-09-12 at 20 22 30

bitinn avatar Sep 12 '17 12:09 bitinn

Same issue here as @bitinn mentioned. Using 2017.1.1f1 Personal 64bit Editor 2017-10-18 14_15_14-unity 2017 1 1f1 personal 64bit

Any update on this?

code-beans avatar Oct 18 '17 14:10 code-beans

@bitinn Falling back on v0.1.8 (experimental) and having 2d mode disabled solved the issue for me.

code-beans avatar Oct 18 '17 14:10 code-beans