📜  在 inspecotr unity 中显示私有字段 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.658000             🧑  作者: Mango

代码示例1
// You Can as well do this with "ScrpitableObject"s
public class MyClass : MonoBehaviour { 
    // Make sure that your field type is actually displayable on the inspector
    [SerializeField] var myPrivateField  
{