Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Object Pooling for Actors on the scene doesn't work properly. #54

Closed
PixeyeHQ opened this issue Jun 28, 2020 · 0 comments
Closed

Comments

@PixeyeHQ
Copy link
Owner

Using ispooled variable in the actor is unsafe and should be redesigned. The problem is only for actors that were put in the scene from the editor. The Poolmanaged doesn't know anything about those prefabs. The framework managed that by caching prefabs before making a build but it won't work for scenes that were not added to the scene manager.

Another solution is to remove entirely editor prefab check and ispooled variable. Instead, add the string name of the prefab in the actor that will be used for getting proper prefab instance id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant