I tried to do a script that extends some functions of an existing script but I’m currently blocked on something stupid and I have no idea why it does that.
The script can not be more simple :
public class UIContentSizeFitter : ContentSizeFitter {
public float m_MaxHeight;
public float m_MaxWidth;
}
Yes. Only that. I want these variables to be accessible from the inspector and I have no idea why they just don’t shown up…
The parent class needs/must inherit from MonoBehaviour
Parent Class
```csharp
**using UnityEngine;
using System.Collections;
public class Test : MonoBehaviour
{
[Header(“Variables From Parent Class”)]
public string Text;
public int Int;
}** ```
Child Class
csharp** **using UnityEngine; using System.Collections; public class TestmyTest : Test { [Header("Varibale From Child Class")] public string TestMyTest; }** **