Press "Enter" to skip to content

The difference bettwen public and Serailizefield

内容纲要

Here are the four different possible combinations:

  • public - Show up in inspector and accessible by other scripts
  • [SerialiseField] private - Show up in inspector, not accessible by other scripts
  • [HideInInspector] public - Doesn't show in inspector, accessible by other scripts
  • private - Doesn't show in inspector, not accessible by other scripts
发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注