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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Does this data type exist?

Discussion in 'Getting Started' started by MathewAlden, Nov 28, 2015.

  1. MathewAlden

    MathewAlden

    Joined:
    Nov 10, 2013
    Posts:
    12
    Hello!

    I'm new to Unity and C#. I need a very specific data type and I was wondering if it existed or if I should make my own class. I need a resizable 3d array that allows me to use both positive and negative indices. And it has to resize both forward and backwards.
    Does that exist? or should I make my own?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,848
    I'm not aware of any such thing. You'll probably need to make your own.
     
  3. MathewAlden

    MathewAlden

    Joined:
    Nov 10, 2013
    Posts:
    12
    Okay.
    Does C# have any sort of resizable arrays?
    Edit: I can use two 3d List<T> to do what I need. Thanks for the help!
     
    Last edited: Nov 28, 2015
    JoeStrout likes this.