'[OneSignal]. how to calling setExternalUserId and setEmail for both in the same device in ionic 4,5,6

I saw someone do this in an React-Native But it does not work in ionic

OneSignal.setEmail(email, null, () => {
   OneSignal.setExternalUserId(userId);
});


Solution 1:[1]

You can try LineRenderer.BakeMesh.

Use it like this:

public yourLineRendererComponent;
public MeshCollider meshCollider; //attached to the lineRenderer gameobject or child
private Mesh mesh = new Mesh();

void setLrCollider() {
    LineRenderer lineRenderer = yourLineRendererComponent;
    lineRenderer.startWidth = 1; //optional
    lineRenderer.endWidth = 1; //optional

    /*****optional to set the points with code*****/
    // canbe done in the inspector but points needs to be set for bakemesh towork 
    Vector3 lineRendererPathVector3Array = new Vector3[];
    lineRendererPathVector3Array [0] = new Vector3(0.0f,0.0f,0.0f);            
    lineRendererPathVector3Array [1] = new Vector3(0.1f,0.1f,0.1f);
    lineRendererPathVector3Array [2] = new Vector3(0.2f,0.3f,0.4f);
    lineRendererPathVector3Array [3] = new Vector3(0.5f,0.5f,0.5f);
    lineRenderer.positionCount = lineRendererPathVector3Array.Length;
    lineRenderer.SetPositions(lineRendererPathVector3Array);
    /*****optional to set the points with code finish*****/

    //below lines create a mesh collider with the line renderer's shape
    lineRenderer.BakeMesh(mesh, Camera.main);
    meshCollider.sharedMesh = mesh;
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rustyBucketBay