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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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,735
    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:
    530
    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.