Unity - Package - MessagePipe

Guide

Extras

  • 搭配 VContainer v1.14.0 之後可以簡化配置

    using MessagePipe;
    using UnityEngine;
    using VContainer;
    using VContainer.Unity;
    
    public sealed class GameLifetimeScope : LifetimeScope
    {
        protected override void Configure(IContainerBuilder builder)
        {
            // 只需這行即可
            builder.RegisterMessagePipe(); 
        }
    }