Beispiel #1
0
        private void Pose_OnSync(object sender, PoseFrameMMapSyncer.OnSyncEventArgs e)
        {
            Texture2D tex    = e.SyncData.GetFrame();
            Sprite    sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), 0.5f * Vector2.one, 100.0f);

            if (BGRenderer.sprite != null)
            {
                Destroy(BGRenderer.sprite);
                BGRenderer.sprite = null;
            }
            BGRenderer.sprite = sprite;
        }
Beispiel #2
0
 private void Pose_OnSync(object sender, PoseFrameMMapSyncer.OnSyncEventArgs e)
 {
     SyncFrom(e.SyncData);
 }
Beispiel #3
0
 private void Pose_OnSync(object sender, PoseFrameMMapSyncer.OnSyncEventArgs e)
 {
     // Save the sync data into a local variable
     UpdateCurrentPose(e.SyncData);
     AlignPose();
 }