Quantcast
Channel: Answers for "Add Elements in Array in Inspector with alphabetical sorting"
Browsing latest articles
Browse All 8 View Live

Answer by Jamora

As CHPedersen argues, having thise done automatically by Unity is a bad idea. Luckily Unity allows us to implement our own behavior to some extent. You need to create either a [custom inspector][1] for...

View Article


Answer by hudi

The same thing annoyed me very much and I found a simple solution. **1) Make a public list** public List Objects; **2) Make a class implementing IComparer** class Comparer : IComparer { int...

View Article


Answer by WoozyBytes

It would be easier to use a [Generic List][1] Instead of built in arrays and you can just call `_myList.Sort();` and it's sorted . Here's an example using UnityEngine ; using...

View Article

Answer by JoeStrout

FWIW, in case somebody else stumbles across this question as I did, here's the solution I have settled on for now. In the script containing an array property, add a bit of code to create a contextual...

View Article
Browsing latest articles
Browse All 8 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>