Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
quabug authored Mar 14, 2021
1 parent 708b15f commit a66ef14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ Similar like [`SerializeReference`](https://docs.unity3d.com/ScriptReference/Ser
```c#
public interface IMyInterface<T> {}
public class MyIntObject : IMyInterface<int> {}
public class MyGenericObject<T> : IMyInterface<T> {}

public class MyMonoBehavior : MonoBehaviour
{
[GenericSerializeReference]
public IMyInterface<int> Value { get; set; }
}
```
![image](https://user-images.githubusercontent.com/683655/111064372-b47b6280-84ee-11eb-90c2-22cfbdc65cc0.png)
![image](https://user-images.githubusercontent.com/683655/111073521-0be2f800-851a-11eb-956e-a3044f141093.png)

## Requirement
Unity3D 2020.2+ (not guaranteed to work below 2020.2)
Expand Down

0 comments on commit a66ef14

Please sign in to comment.