Skip to content

cloud disappears after Alt-Tab to unity #78

Open
@unitycoder

Description

@unitycoder

probably related to
https://forum.unity.com/threads/is-this-a-bug-in-unity.710510/#post-4749092

doesnt happen on my pc though.. but here is workaround, add this code to viewer:

void OnApplicationFocus(bool focused)
{
    if (focused)
    {
        cloudMaterial.SetBuffer("buf_Points", bufferPoints);
        cloudMaterial.SetBuffer("buf_Colors", bufferColors);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions