I made a custom ScriptableWizard and wanted to draw Gizmos while it was active, so I defined the following function inside my class (c#):
Gizmos.DrawCube(new Vector3(0,0,0), new Vector3(1,1,1));
But even when the wizard is active there are no Debug messages and no Gizmo is drawn. So I was wondering what I was doing wrong... ;P
Thanks in advance
Same problem here, have you find some workaround for this?
No, I was so focused in ways to avoid using gizmos that forgot to.
Deleted the comment and posted and answer. No need to post a bug report, according to the forums UT is aware of the issue. :)
Same here, OnDrawGizmos seems to not work with scriptablewizard...unfortunately
Answer by Joshua
Jun 19, 2011 at 02:54 AM
It's a know bug. A quote from the forums by Shawn, a Unity employee: " this is a known problem. We have no ETA on a fix yet... :( "
Answer by CalledToGaming
Mar 10, 2010 at 07:56 PM
Make sure you didn't accidentally "un-render" the mesh for the missing object. It may sound obvious, but you never know. That would be something I'd do by accident. lol.
But I don't even have a mesh, I only have a ScriptableWizard editor window. Not sure I understand what you mean.
Answer by andeeee
Feb 24, 2010 at 05:47 PM
Is the scene camera looking at <0,0,0>? The best way to check is to position an object there and make sure the camera can see it. If you still don't see the cube, there could be another problem.
To test this I placed a sphere at 0,0,0. I can see the sphere in the scene view, but can't see a cube with the wizard open, neither in the scene view nor in the game view with the Gizmos button enabled.
Answer by Murcho
Jun 03, 2010 at 03:01 AM
Check you don't have any script compilation errors. If this code was added since the last successful compile, it won't be included in the current wizard you see.
Note that this includes ALL compiling issues in your project, not just the script containing this code. If there are any compilation errors at all, Unity will revert to the last successful code compile.
That's about the only thing I can see possibly wrong with this right now, and I point it out as it has happened to me a couple of times before.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Manually Update/Redraw Scene View?
Gizmo Debug in Release Version
gizmo.drawline question : point a to b
How to Disable Transform Axis Gizmo Arrows
Transform tools appear far out from object and do not work.