Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to add a 'ConvertToEntity checkbox' to all GameObject inspectors?

Discussion in 'Editor & General Support' started by Albertoseptim95, Mar 16, 2020.

  1. Albertoseptim95

    Albertoseptim95

    Joined:
    Oct 7, 2018
    Posts:
    1
    Hi, while I was checking the UnityPhysicsSamples Demos in the ECS Samples Github project, I came across this new checkbox inspector option that I'd never seen before (see the image attached below!).
    This checkbox makes it very easy to select whether or not to convert to ECS entities a whole hierarchy of normal GameObjects - which is precisely what I want to achieve in my own project,
    However, I do not know how to make this checkbox/option appear in my own inspector. Is it a customization achieved via a script? Is there a way to add it to the inspector using some in editor commands?
    If you know about this, I would really appreciate an answer!
    Thanks,
    Alberto
     

    Attached Files:

  2. drugges

    drugges

    Joined:
    Dec 28, 2018
    Posts:
    42
    You need to install the DOTS Editor package.
     
  3. THE2FUN

    THE2FUN

    Joined:
    Aug 25, 2015
    Posts:
    62
    it giving errors why?