如何设置Instantiated GameObject的`RectTransform`.Left&在Unity C#中?

时间:2017-11-24 17:38:31

标签: c# unity3d transform gameobject

我想在clue_prefabs内实例化Clues。帮助我设置实例化的clue_prefab' leftright,并为每个实例化的clue_prefab设置位置y为497 -150。

GameObject new_clue_prefab = Instantiate(cluePrefab, new Vector3(360, 1000 - (i * 130)),
                                           Quaternion.identity, clueContainer);

此代码的输出为left:133,right:133

screenshot of behavior

0 个答案:

没有答案