From ba5d859f2f5a66ee2571cd70b62e2e6d74d84d77 Mon Sep 17 00:00:00 2001 From: hadashiA Date: Fri, 29 Mar 2024 16:50:54 +0900 Subject: [PATCH] README --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index defc33e..06692ee 100644 --- a/README.md +++ b/README.md @@ -1179,7 +1179,8 @@ You need to install Core library and choose [VContainer](https://github.com/hada Andalso, requires [UniTask](https://github.com/Cysharp/UniTask) to install, all `ValueTask` declaration in .NET is replaced to `UniTask`. -Unity version does not have open generics support(for IL2CPP) and does not support auto registration. Therefore, all required types need to be manually registered. +> [!NOTE] +> Unity version does not have open generics support(for IL2CPP) and does not support auto registration. Therefore, all required types need to be manually registered. VContainer's installation sample. @@ -1233,6 +1234,15 @@ public class MessagePipeDemo : VContainer.Unity.IStartable } ``` +> [!TIP] +> If you are using Unity 2022.1 or later and VContainer 1.14.0 or later, you do not need `RegsiterMessageBroker<>`. +> A set of types including `ISubscriber<>`, `IPublisher<>` or its asynchronous version will be resolved automatically. +> Note that `IRequesthandler<>` and `IRequestAllHanlder<>` still require manual registration. + + +Unity version does not have open generics support(for IL2CPP) and does not support auto registration. Therefore, all required types need to be manually registered. + + Zenject's installation sample. ```csharp