• 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 Veehmot · Feb 17, 2012 at 05:59 AM · editormeshselection

Make GameObject not selectable on Editor Mode

I have a GameObject that contains a child GameObject (which has the mesh information).

Whenever I select the visible GameObject, the child is automatically selected, but I want the parent to be the one being selected.

Why I'm doing that instead of directly using the child object is because I don't like the MeshFilter and MeshRenderer components being visible. The parent GameObject has none of those scripts. So, I want to hide information.

If that isn't possible, is there a way to attach mesh information to a GameObject without using the MeshFilter component?

alt text

Comment
Add comment · Show 1
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 The-Oddler · Nov 27, 2013 at 09:35 PM 0
Share

Ever found how to do this?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by tarasfromlviv · Oct 21, 2016 at 08:40 AM

You can use https://docs.unity3d.com/ScriptReference/SelectionBaseAttribute.html which will Add this attribute to a script class to mark its GameObject as a selection base object for Scene View picking.

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
avatar image
0

Answer by komodor · Nov 30, 2013 at 11:12 AM

not exactly what you are looking for, but i use https://www.assetstore.unity3d.com/#/content/4851 and it helps a lot

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 julesradu · Oct 28, 2020 at 09:16 PM 0
Share

This link is broken now. Do you remember what the asset was called ?

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.

Welcome to Unity Answers

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.



Follow this Question

Answers Answers and Comments

10 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

Related Questions

Standard Model Problems- after upgrade to 5.6.1 2 Answers

Mesh visible in editor but not build 1 Answer

Working with the editor Selection 0 Answers

Mesh not returning Raycast hit info in editor or runtime 0 Answers

How to check if object is skewed ? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges