📜  unity ar scale - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.106000             🧑  作者: Mango

代码示例1
ARSessionOrigin arSessionOrigin = FindObjectOfType();
float contentScale = /* inverted (?) scale factor for the object */;
Transform objectToScale = /* parent transform for what you are scaling */;
arSessionOrigin.MakeContentAppearAt(objectToScale, objectToScale.position);
arRootObject.transform.localScale = new Vector3(contentScale, contentScale, contentScale);