Skip to content

Commit

Permalink
Replace use of deprecate ARKit API
Browse files Browse the repository at this point in the history
  • Loading branch information
nCastle1 authored and mstefarov committed Feb 2, 2023
1 parent f24a385 commit 1b67536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ARToolkit/ARSceneView.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private void UpdateMaterial(ARPlaneAnchor anchor)
// Scale the material to be 10x10cm
// Texture used is 1.732x taller than wide
if (material != null)
material.Diffuse.ContentsTransform = SCNMatrix4.Scale(anchor.Extent.X / .1f, anchor.Extent.Z / .1f / 1.732f, 0);
material.Diffuse.ContentsTransform = SCNMatrix4.Scale(anchor.PlaneExtent.Width/ .1f, anchor.PlaneExtent.Height / .1f / 1.732f, 0);
}
}
}
Expand Down

0 comments on commit 1b67536

Please sign in to comment.