-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编辑器相关需求 #181
Comments
添加游戏对象到指定的位置 // go是父gameObject指定index
go.addChildAt(child, index) 如果想放在某个gameObject后面的话 可以先获取他的位置 // target 是目标gameObject
// go是父gameObject
// child 是要添加的gameObject
// 获取index
const index = go.transform.children.indexOf(target.transform)
go.addChildAt(index) // 插入到target的位置,target以及后面的会向后平移
go.addChildAt(index+1) // 插入到target的后面 Commit: 5ce44c7 |
Transform中提供获取 Local Transform 和 Global Transform 的方案。 |
Open
3 tasks
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: