protected void TryCacheJson() { LDtkJsonFile <T> file = (LDtkJsonFile <T>)target; Assert.IsNotNull(file); if (JsonData == null) { JsonData = file.FromJson; } }
public override void OnInspectorGUI() { LDtkJsonFile <T> file = (LDtkJsonFile <T>)target; Assert.IsNotNull(file); if (_cachedData == null) { _cachedData = file.FromJson; } Assert.AreNotEqual(_cachedData, default); DrawInspectorGUI(_cachedData); }