Search Unity

Massive with massive in inspector

Discussion in 'Scripting' started by musha20100, May 18, 2022.

  1. musha20100

    musha20100

    Joined:
    May 18, 2022
    Posts:
    2
    I have massive with massive of sprites. but I am't seeing this massive in inspector from unity.
    I want drop there my sprite before start game and one massive not suitable for me.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,910
    When you say "massive" do you mean "array"?

    Unity does not support arrays-of-arrays (jagged arrays) in the inspector.
     
    Bunny83 and musha20100 like this.
  3. musha20100

    musha20100

    Joined:
    May 18, 2022
    Posts:
    2
    okey, thank you
     
  4. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    602
    If really necessary you can probably workaround the lack of jagged array support by wrapping one of the array levels in a struct. That is array of structs where struct has array as only field.