using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SerializeAClass : MonoBehaviour {
[System.Serializable]
public class Target {
public enum Sorts {
Height,
Length,
Width
}
public int a;
public GameObject b;
[Range(0, 1)]
public float c;
}
public Target ItsTarget = new Target();
}
using System.Collections.Generic;
using UnityEngine;
public class SerializeAClass : MonoBehaviour {
[System.Serializable]
public class Target {
public enum Sorts {
Height,
Length,
Width
}
public int a;
public GameObject b;
[Range(0, 1)]
public float c;
}
public Target ItsTarget = new Target();
}