Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Captain_Dando · May 07, 2013 at 10:48 AM · prefabmodelsscene viewmodelling

Is it possible to have a model only appear in the scene view?

Hi everyone. I have a few specific positions I would like to spawn prefabs at and I would like to be able to see them only in the scene view, just like widgets. If they were models I would also be able to see their orientation and size though. Is this kind of thing possible?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · May 09, 2013 at 08:31 AM

You can simply put your models on a special layer. Just use the last one (31) and name it "Editor only". On all your cameras you should exclude this layer in the cullingmask.

Since the model is still part of the scene it would bloat up your scene in your final game, so it's better to use a custom inspector for your class.

In the custom editor you would use Resources.LoadAssetAtPath in OnEnable to load a model from an arbitrary folder. This model can be drawn in OnSceneGUI with Graphics.DrawMeshNow.

Keep in mind to only draw stuff in the repaint event. See Event.current.type.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Captain_Dando · May 09, 2013 at 08:37 AM 0
Share

Thank you!

avatar image
0

Answer by Graham-Dunnett · May 07, 2013 at 11:01 AM

http://docs.unity3d.com/Documentation/Components/gui-ExtendingEditor.html

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Captain_Dando · May 07, 2013 at 11:17 AM 0
Share

can you elaborate a bit? I can't see anything in here about 3d models that only appear in the scene view. Does it have something to do with OnSceneGUI ()?

avatar image
0

Answer by Captain_Dando · May 09, 2013 at 07:48 AM

Ok, I wasn't able to accomplish what I set out to do, but if it's any help to someone out there, I created my own gizmo icons, which sort of helps.

Create a folder in your assets name "Gizmos" and place the image you'd like to use as your gizmo. then, in the game object you'd like to repesent, place this code:

 void OnDrawGizmos() {
     Gizmos.DrawIcon(transform.position, "Camera Waypoint.psd");
 }

as you can see here, you can use a photoshop file, which is useful if you want to edit it later on, though I've seen people use all kinds of image formats.

This doesn't really sort out my problem with instantly seeing my gameObject's orientation, but it's something.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Available modeling in UNITY 2D 0 Answers

Can model be created in Unity? 1 Answer

Making of mercury,water models in unity 3d? 0 Answers

Turning Models/Meshes into Prefabs 1 Answer

Object is invisible when there is another object behind 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges