Skip to content

Destroy container reflection cache, even if is destroyOnLoad = false #70

@PinkPanter

Description

@PinkPanter

When I create container, that shoudn't be destroy on load new scene it cache is destroy.

It happend when I use EventCallerContainerExtension, becouse GameObject, that was created desroy on load, and call OnDestroy. OnDestroy call Dispose on each disposable object, and owr container is it.

DontDestroyOnLoad(gameObject) on EventCallerBehaviour fix problem, but I think it can couse other problems, when destroyOnLoad = true

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions