Zenject
Zenject copied to clipboard
InstantiatePrefab without DontDestroyOnLoad
Describe the bug
When using the InstantiatePrefab method, the created object begins to have a property DontDestroyOnLoad
To Reproduce
Create method using InstantiatePrefab without specifying Transform
Expected behavior
The object is created without the DontDestroyOnLoad property
Extenject and Unity info (please complete the following information):
- Zenject version: 9.2.0
- Unity version: 2020.3.33f