Skip to content

Duplicated Spout Gameobject is created. causes Editor crash #7

@sloopidoopi

Description

@sloopidoopi

There is some little bug when you open the Unity demo and you click onto a Spoutreceiver without ever let the scene go into play mode. Even if there is already a Spout Gameobject(Spout2 component attached) a new Sout2 Instance is created. I changed the Init(bool debug) Method at the bottom with an additional check to circumvent this problem :

if(FindObjectsOfType<Spout2>().Length <=0){

        spoutObject = new GameObject("Spout");

        spoutObject.AddComponent<Spout2>();
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions