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. Dismiss Notice

Make NPCs/objs ignore other NPCs/objs, in thousands & more

Discussion in 'Scripting' started by codingSince666, Oct 23, 2021.

  1. codingSince666

    codingSince666

    Joined:
    Oct 21, 2021
    Posts:
    16
    collision layers do the job but theres only few of them (32 max)



    i can ignore objs one by one but thats just crazy, as i would have to ignore thousands and more, per every npc or obj

    it seems theres no way
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    We're going to need more info. What kind of objects are you trying to prevent from colliding with what kind of NPCs and how is 32 layers not enough to accomplish it?
     
  3. codingSince666

    codingSince666

    Joined:
    Oct 21, 2021
    Posts:
    16
    what about multi scene physics? cant this theoretically create infinite collision layers? (using scenes as collision layers, 1 scene = 1 layer)
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,507
    You're answering a question with a question. You have not adequately described what the problem is in the first place so continuing to ask different questions isn't helping. It's clear in your mind but it's not clear from what you asked.

    Yes, the limit is 32 layers or obj/obj and nothing else. In theory you can use multiple scenes but that's not what it's meant for, they are completely isolated so isn't a workaround for creating 32 * N layers realistically if that's all you're asking.

    You have to consider all the games created with Unity and whether what you're trying to do is actually a good idea if it looks like it cannot be done.