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

Noob Question: How to disable a System?

Discussion in 'Entity Component System' started by craig4android, Dec 27, 2019.

  1. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    124
    Sure I could comment it out, but there should be a better way? I don't want to disable it, I just don't want it in the build temporarily.
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    "How to disable system"
    "I don't want to disable it"


    If youi want exclude susyem from build - wrap it to preprocessor directive (like UNITY_EDITOR) or use your own definitions in player settings for include\exclude system from build\editor\platform\etc
     
    starikcetin likes this.
  3. BenjaminBachman

    BenjaminBachman

    Joined:
    Feb 1, 2017
    Posts:
    29
  4. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    If you put [DisableAutoCreation] it is still in the build but not added to default world.