Mirror
Mirror copied to clipboard
MrGadget NetworkManager populate spawnable prefabs button suggestions
posting so it doesn't get lost.
Few suggestions:
- Do the OrderBy on the identities list before doing the AddRange, so that any that were added to NM.spawnable manually first are kept in place
- Add a Clear button so users can wipe the list and rescan to rebuild the list fully sorted if they know that won't break them
- make sure you're not adding Player Prefab to spawnables, since Mirror adds that automatically elsewhere.
For no. 1 above, I'm thinking of the case where player character prefabs are intentionally put in the first few slots and referenced by index in char selection, so they can't be sorted down into the middle of the list without breaking things