Mail.ruПочтаМой МирОдноклассникиВКонтактеИгрыЗнакомстваНовостиКалендарьОблакоЗаметкиВсе проекты

Ошибка в Zenject (Unity)

Межголоктический разум Ученик (200), открыт 3 часа назад
Запуская игру, зависимости не раскидываются. И вот такая ошибка

ZenjectException: Assert hit! Invalid type given during bind command. Expected type 'GameObject' to either derive from UnityEngine.Component or be an interface
ModestTree.Assert.That (System.Boolean condition, System.String message, System.Object p1) (at Assets/Plugins/Zenject/Source/Internal/Assert.cs:347)
Zenject.BindingUtil.AssertIsInterfaceOrComponent (System.Type type) (at Assets/Plugins/Zenject/Source/Binding/BindingUtil.cs:184)
Zenject.BindingUtil.AssertIsInterfaceOrComponent (System.Collections.Generic.IEnumerable`1[T] types) (at Assets/Plugins/Zenject/Source/Binding/BindingUtil.cs:167)
Zenject.FromBinder.FromComponentInNewPrefab (UnityEngine.Object prefab, Zenject.GameObjectCreationParameters gameObjectInfo) (at Assets/Plugins/Zenject/Source/Binding/Binders/FromBinders/FromBinder.cs:369)
Zenject.FromBinder.FromComponentInNewPrefab (UnityEngine.Object prefab) (at Assets/Plugins/Zenject/Source/Binding/Binders/FromBinders/FromBinder.cs:361)
GameInstaller.InstallBindings () (at Assets/Scripts/GameInstaller.cs:17)
Zenject.Context.InstallInstallers (System.Collections.Generic.List`1[T] normalInstallers, System.Collections.Generic.List`1[T] normalInstallerTypes, System.Collections.Generic.List`1[T] scriptableObjectInstallers, System.Collections.Generic.List`1[T] installers, System.Collections.Generic.List`1[T] installerPrefabs) (at Assets/Plugins/Zenject/Source/Install/Contexts/Context.cs:218)
Zenject.Context.InstallInstallers () (at Assets/Plugins/Zenject/Source/Install/Contexts/Context.cs:139)
Zenject.SceneContext.InstallBindings (System.Collections.Generic.List`1[T] injectableMonoBehaviours) (at Assets/Plugins/Zenject/Source/Install/Contexts/SceneContext.cs:346)
Zenject.SceneContext.Install () (at Assets/Plugins/Zenject/Source/Install/Contexts/SceneContext.cs:265)
Zenject.SceneContext.RunInternal () (at Assets/Plugins/Zenject/Source/Install/Contexts/SceneContext.cs:134)
Zenject.RunnableContext.Run () (at Assets/Plugins/Zenject/Source/Install/Contexts/RunnableContext.cs:36)
Zenject.RunnableContext.Initialize () (at Assets/Plugins/Zenject/Source/Install/Contexts/RunnableContext.cs:22)
Zenject.SceneContext.Awake () (at Assets/Plugins/Zenject/Source/Install/Contexts/SceneContext.cs:113)
0 ответов
Похожие вопросы