mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-22 15:45:35 +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]
|
[Serializable]
|
||||||
public class AnimalMonoBehaviour : MonoBehaviour, IAnimal
|
public class AnimalMonoBehaviour : MonoBehaviour, IAnimal
|
||||||
{
|
{
|
||||||
public void Feed() => throw new NotImplementedException();
|
public void Feed() => Debug.Log("thanks");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AnimalScriptableObject : ScriptableObject, IAnimal
|
public class AnimalScriptableObject : ScriptableObject, IAnimal
|
||||||
{
|
{
|
||||||
public void Feed() => throw new NotImplementedException();
|
public void Feed() => Debug.Log("thanks");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AnimalPrivateConstructor : IAnimal
|
public class AnimalPrivateConstructor : IAnimal
|
||||||
{
|
{
|
||||||
private AnimalPrivateConstructor(){}
|
private AnimalPrivateConstructor(){}
|
||||||
public void Feed() => throw new NotImplementedException();
|
public void Feed() => Debug.Log("thanks");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user