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

Disabling and reenabling a Mirror GameObject does not recreate RenderTexture if camera descriptor unchanged #7

Open
cLick1338 opened this issue May 1, 2020 · 0 comments

Comments

@cLick1338
Copy link

cLick1338 commented May 1, 2020

I changed Mirror.cs:218 from
if(!descriptor.Equals(m_PreviousDescriptor))
to
if(!descriptor.Equals(m_PreviousDescriptor) || m_RenderTexture == null)

Not sure if ideal but works for me.

@cLick1338 cLick1338 changed the title Disabling and reenabling a Mirror GameObject does not recreate RenderTexture if camera unchanged Disabling and reenabling a Mirror GameObject does not recreate RenderTexture if camera descriptor unchanged May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant