Can you select an item from a list in the editor before runtime using LINQ
Hi, ive setup a script using LINQ to populate a list of sprites from the new Sprite Atlas in 2017.
Now this all works fine at runtime and I can skip through the sprites with next and back buttons.
But, I would like to specify which sprite it access in the editor before runtime instead of the first one. Currently i am using SpriteAtlasRender.sprite = spriteList.First ();
I would like a dropdown of the list in the editor to call a specific sprite, but without hardcoding the name of the sprite into the code, as I want the list to be populated dynamically, so that you dont have to write all the sprite names in the code?
Is this possible? Currently i am leaning to no, as the list first needs to be populated before it knows the names of the sprites?
Thanks