DarkRewar / BaseTool

A big library of basic tools that you might need in your Unity projects.
MIT License
45 stars 6 forks source link

Add `Required` attribute for fields #113

Open DarkRewar opened 1 month ago

DarkRewar commented 1 month ago
public class MyComponent : MonoBehaviour
{
    [Required]
    public GameObject Prefab;
}

Will logs "Prefab must be required on MyComponent".

Optional: freeze the Play mode (error stays in the console)