-
I'm using this plugin, so game designers can inspect objects outside the project and generate jsons. But some objects that have a object reference field does not respect the order, it always goes first. How can I ensure to respect the order on the runtime inspector? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply! here is the code of SpawnGroup: [CreateAssetMenu(fileName="New SpawnGroup",menuName="Spawn Group")]
(...) |
Beta Was this translation helpful? Give feedback.
Thanks for the reply!
I'm trying to put this as code on this comment, but I failed...
here is the code of SpawnGroup:
`
using UnityEngine;
using Random = UnityEngine.Random;
[CreateAssetMenu(fileName="New SpawnGroup",menuName="Spawn Group")]
public class SpawnGroup : ScriptableObject
{
[Header("Spawn Group")]
[Tooltip("Name of the Group Selection")]
[SerializeField]
private string spawnGroupName;
public string SpawnGroupName => spawnGroupName;