Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

More HideFlags, or other system

Discussion in '2017.2 Beta' started by Ziboo, Jul 20, 2017.

  1. Ziboo

    Ziboo

    Joined:
    Aug 30, 2011
    Posts:
    356
    Hi,

    I would like to know if it would be possible to add a new HideFlags.
    Something like: HideFlags.NotEditableExceptTransform

    What I would like, is for my artists to use and place Prefabs but don't touch anything on it, and instead modify the source (project), yep they have a really bad habit to not do that..

    But if I apply HideFlags.NotEditable we can't even move, rotate or scale the prefab.

    And Even Better, in addition of HideFlags.NotEditableExceptTransform being able to tell that one component could be editable.
    I have a component "EnvironmentPrefab.cs" on every prefab we use for environment, and I would like to make just this one editable.

    Thanks
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    Have you tried to set the HideFlags on each Component, rather than the GameObject?
     
  3. Ziboo

    Ziboo

    Joined:
    Aug 30, 2011
    Posts:
    356
    Nop.

    It might work, but it wont block them to change the StaticFlags on the prefab, which is very important for me that they don't change that.
    Only way to lock StaticFlags is to have the HideFlags.NotEditable on the all gameobject