Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/litecomponent.git?path=Assets

README Markdown

Copy this to your project's README.md

Style
Preview
pkglnk installs badge
## Installation

Add **Lite Component** to your Unity project via Package Manager:

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/litecomponent.git?path=Assets
```

[![pkglnk](https://www.pkglnk.dev/badge/litecomponent.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/litecomponent)

README

LiteComponent

How to install

Add in Packages/manifest.json to dependencies:

"com.danand.litecomponent": "https://github.com/Danand/LiteComponent.git#0.1.0-package-unity"

How to use

Just add attribute LiteComponent to interface-typed field for drawing implementations dropdown and selected implementation's fields in inspector:

[SerializeReference]
[LiteComponent]
public ICustomBehaviour behaviour;

Notice that Unity 2019.3 is required because of using SerializeReference for abstract types serialization.

Mark every behaviour implementation as Serializable:

[Serializable]
public class ICustomBehaviourImpl : ICustomBehaviour { /* ... */ }

Comments

No comments yet. Be the first!