About 80,500 results
Open links in new tab
  1. unity - Sorting a list of objects by distance - Game Development Stack ...

    Sorting a list of objects by distance Ask Question Asked 6 years, 11 months ago Modified 3 years, 2 months ago

  2. unity - When to use NativeArray over List or Array? - Game …

    Aug 26, 2019 · Unity's job system is made to be both fast and safe for multithreading. By that I mean that they do a lot of checks and add some limitations, to make sure you can't get some common …

  3. unity - Exposing list of interfaces to inspector using Odin - Game ...

    1 Use case: scriptable objects that contain different algorithms but generate compatible data, which are used randomly in a procedural system. They implement an interface so that the system can give …

  4. unity - How to create a list of buttons from a list? - Game Development ...

    Oct 15, 2016 · Creating a button in Unity is quite simple, via scripting. Once you understand how create a single button, it should not be complicated to create a list of buttons.

  5. Viewing a List of A Custom Class inside of Unity Inspector

    Jan 28, 2023 · Unity uses the serializer to power its inspector views, so be sure to put the [System.Serializable] attribute on any type you want to display in the inspector that doesn't descend …

  6. unity - Structuring a Scriptable Object so that it has a List or an ...

    Jul 7, 2022 · Ah, well, following that same idea you could have the SuperNeem scriptable object, which contains a List of... let's call it AuxNeem, which is a normal c# class marked as System.Serializable …

  7. unity - How can I store a list of instances of different classes ...

    Feb 10, 2024 · That's a different question, unrelated to how to serialize a list of different types. I don't recommend auto-registering every instance for saving though, as your users will likely want to have …

  8. unity - Check if two lists are the same - Game Development Stack …

    Feb 11, 2017 · The solution is fairly simple. Just sort the list, before you compare values in it. This is straight forward, if we are using List<int>; int values already know how to sort themselves, in a list. If …

  9. unity - Removing all destroyed objects from a list - Game Development ...

    May 10, 2021 · I am a little confused on deleting objects in a List. I realise that clearing the list doesn't destroy the gameobject in Unity. Hence I have written this routine to destroy and remove: //clear all ...

  10. How to display a list of 2D arrays in the inspector

    Aug 24, 2015 · Simply put, how do I make public List&lt;bool[,]&gt; appear in the inspector? Every 'bool[,]' is a solution to a puzzle in my game and I want to be able to view and edit them in the inspector.