Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[CustomEditor] How to change selection area of game object in scene view

Discussion in 'Scripting' started by mrwind1, Mar 31, 2016.

  1. mrwind1

    mrwind1

    Joined:
    Feb 2, 2016
    Posts:
    3
    I create a custom editor for my gameobject .
    But in scene view i can't select my gameobject because it have many child gameobject create by code in script.
    Child gameobject use HideFlags.HideInHierarchy so when i click a child gameobject then Editor don't select anything.
    I want to change selection of gameobject so when i click a child gameobject then Editor will select parent gameobject.
     
  2. mrwind1

    mrwind1

    Joined:
    Feb 2, 2016
    Posts:
    3
    Anybody help me this :(