From 3f103a60700c97f698a8518261824b57532d8228 Mon Sep 17 00:00:00 2001 From: hadashiA Date: Thu, 1 Feb 2024 16:12:22 +0900 Subject: [PATCH] Add unity install instruction to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index f0f9686..aa59262 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,16 @@ protected override void OnClosed(EventArgs e) Unity --- + +To install in a Unity project, you can use package manager. + +- Open Window > Package Manager +- The "+" button > Add package from git URL +- Enter the following URL + - ``` + https://github.com/Cysharp/ObservableCollections.git?path=src/ObservableCollections.Unity/Assets/Plugins/ObservableCollections + ``` + In Unity, ObservableCollections and Views are useful as CollectionManagers, since they need to convert T to Prefab for display. Since we need to have side effects on GameObjects, we will prepare a filter and apply an action on changes.