mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-25 09:05:31 +01:00
Added not supported types example.
Classes that has no empty parameters are not supported and not shown(activator can not create instances of them).
This commit is contained in:
parent
1e8f80077f
commit
f89d7debe5
@ -9,19 +9,19 @@ public class ExampleOfNotSupportedTypes
|
||||
[Serializable]
|
||||
public class AnimalMonoBehaviour : MonoBehaviour, IAnimal
|
||||
{
|
||||
public void Feed() => throw new NotImplementedException();
|
||||
public void Feed() => Debug.Log("thanks");
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AnimalScriptableObject : ScriptableObject, IAnimal
|
||||
{
|
||||
public void Feed() => throw new NotImplementedException();
|
||||
public void Feed() => Debug.Log("thanks");
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AnimalPrivateConstructor : IAnimal
|
||||
{
|
||||
private AnimalPrivateConstructor(){}
|
||||
public void Feed() => throw new NotImplementedException();
|
||||
public void Feed() => Debug.Log("thanks");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user