ArrayList question

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Unity3D

Our great sponsors
  • Zigi - Close all those tabs. Zigi will handle your updates.
  • Scout APM - Truly a developer’s best friend
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Inventory-Pro

    Or do you mean a List or List[] you can't be this ambiguous about your terminology? I don't know what you mean by 'shapes', do you mean gameObject or do you mean meshes or some other data type? For finding things, with an array or List you kinda have to check every entry until you find the correct thing, so if you're looking for an int that is between 6-8 you have to check each int using a for or foreach loop. If you want to set something to equal a random entry, You can use Random.Range(0, collection.Length); for example and it will give you a random entry in that collection. Unity will actually serialise most arrays or lists so long as they're public or marked as a serializable field, so you can actually see what's in them in the inspector. You have the ability to write to the console to tell you all the entries. However a lot of inventories will use a Dictionary as it scales a lot better for searching. There are tons of examples of inventory systems out there for you to look at https://github.com/devdogio/Inventory-Pro https://github.com/Heymity/UniversalInventorySystem https://github.com/slopezpereyra/Item-InventorySystem-Unity3D https://github.com/nzhul/inventory-system But you probably won't understand how they work.

  • UniversalInventorySystem

    A Unity Package for creating easy to use and highly customizable inventories and inventory`s UI

    Or do you mean a List or List[] you can't be this ambiguous about your terminology? I don't know what you mean by 'shapes', do you mean gameObject or do you mean meshes or some other data type? For finding things, with an array or List you kinda have to check every entry until you find the correct thing, so if you're looking for an int that is between 6-8 you have to check each int using a for or foreach loop. If you want to set something to equal a random entry, You can use Random.Range(0, collection.Length); for example and it will give you a random entry in that collection. Unity will actually serialise most arrays or lists so long as they're public or marked as a serializable field, so you can actually see what's in them in the inspector. You have the ability to write to the console to tell you all the entries. However a lot of inventories will use a Dictionary as it scales a lot better for searching. There are tons of examples of inventory systems out there for you to look at https://github.com/devdogio/Inventory-Pro https://github.com/Heymity/UniversalInventorySystem https://github.com/slopezpereyra/Item-InventorySystem-Unity3D https://github.com/nzhul/inventory-system But you probably won't understand how they work.

  • Zigi

    Close all those tabs. Zigi will handle your updates.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

  • Item-InventorySystem-Unity3D

    An item and inventory system for Unity 3D.

    Or do you mean a List or List[] you can't be this ambiguous about your terminology? I don't know what you mean by 'shapes', do you mean gameObject or do you mean meshes or some other data type? For finding things, with an array or List you kinda have to check every entry until you find the correct thing, so if you're looking for an int that is between 6-8 you have to check each int using a for or foreach loop. If you want to set something to equal a random entry, You can use Random.Range(0, collection.Length); for example and it will give you a random entry in that collection. Unity will actually serialise most arrays or lists so long as they're public or marked as a serializable field, so you can actually see what's in them in the inspector. You have the ability to write to the console to tell you all the entries. However a lot of inventories will use a Dictionary as it scales a lot better for searching. There are tons of examples of inventory systems out there for you to look at https://github.com/devdogio/Inventory-Pro https://github.com/Heymity/UniversalInventorySystem https://github.com/slopezpereyra/Item-InventorySystem-Unity3D https://github.com/nzhul/inventory-system But you probably won't understand how they work.

  • inventory-system

    Simple inventory system for unity

    Or do you mean a List or List[] you can't be this ambiguous about your terminology? I don't know what you mean by 'shapes', do you mean gameObject or do you mean meshes or some other data type? For finding things, with an array or List you kinda have to check every entry until you find the correct thing, so if you're looking for an int that is between 6-8 you have to check each int using a for or foreach loop. If you want to set something to equal a random entry, You can use Random.Range(0, collection.Length); for example and it will give you a random entry in that collection. Unity will actually serialise most arrays or lists so long as they're public or marked as a serializable field, so you can actually see what's in them in the inspector. You have the ability to write to the console to tell you all the entries. However a lot of inventories will use a Dictionary as it scales a lot better for searching. There are tons of examples of inventory systems out there for you to look at https://github.com/devdogio/Inventory-Pro https://github.com/Heymity/UniversalInventorySystem https://github.com/slopezpereyra/Item-InventorySystem-Unity3D https://github.com/nzhul/inventory-system But you probably won't understand how they work.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts