Skip to content

Commit a66ef14

Browse files
authored
Update README.md
1 parent 708b15f commit a66ef14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ Similar like [`SerializeReference`](https://docs.unity3d.com/ScriptReference/Ser
33
```c#
44
public interface IMyInterface<T> {}
55
public class MyIntObject : IMyInterface<int> {}
6+
public class MyGenericObject<T> : IMyInterface<T> {}
67

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

1516
## Requirement
1617
Unity3D 2020.2+ (not guaranteed to work below 2020.2)

0 commit comments

Comments
 (0)