Extends the Unity Editor with type picking functionalities.
Use the ShowSerializeReferenceAttribute
on a serializable field with SerializeReference
to add a type picker inspector to that field.
using UnityEngine;
using CareBoo.Serially;
public class MyBehavior : MonoBehaviour
{
[SerializeReference, ShowSerializeReference]
public IPet myPet;
}
Serialize any type with SerializableType
class.
using UnityEngine;
using CareBoo.Serially;
public class MyBehaviour : MonoBehaviour
{
public SerializableType myType;
private void Start()
{
Debug.Log("Serialized type is " myType.Type.FullName);
}
}
Registry | URL |
---|---|
NPM | https://registry.npmjs.org/ |
OpenUPM | https://package.openupm.com |
This project can be installed as a UPM package on OpenUPM or npmjs by adding those as scoped registries. See the Unity manual for more information on Scoped Registries.
Alternatively, you can install this directly as either a tarball or unity asset package from the latest release.
Documentation is hosted here on GitHub pages.