すぎしーのXRと3DCG

主にXR, Unity, 3DCG系の記事を投稿していきます。

Zenject

【Extenject】Composite Installer を紹介!

概要 Compsote Installer について Compositeパターン Compsote Installer の活用術 1. 再利用可能なInstallerグループを作成可能 2. 疎結合Installer, 抽象Installerとして活用 3. 特定の機能提供向けInstallerとして配布 Compsote Installer の使い方 Comp…

【Extenject】AsTransient, AsCached, AsSingle を使い分けよう!

概要 動作環境 関連 前知識 ContractType と ResultType について Zenjectによるインスタンス生成 コンストラクタが複数ある場合 WithArguments の引数の数について Scope (AsTransient, AsCached, AsSingle) Scopeの違い AsTransient AsTransient の 利用例…

【Unity】Zenject (Extenject) を使った自動テストを紹介

Extenject Thumbnail 概要 環境 Extenjectのインストール Zenjectにおける自動テスト種別とそのポイント 共通 Unit Test Integration Test Scene Test テストシチュエーション 登場クラス テスト対象コードの作成 Scripts直下にTestTargets AssemblyDefiniti…