- 博客(5)
- 收藏
- 关注
原创 动态创建UI位置错乱的问题
要用SetParent方法,世界坐标设置为false.`Restartbutton.transform.SetParent(endPanel.transform, false);
2018-12-08 19:41:39
532
1
原创 unity Scale概念
localScale:相对于父物体的大小 另外一个不知道什么东西的是在世界中的大小 最好还是用new Vector3来加减或者赋值比较方便! if (go.transform.tag == “wind”) { mainchar.transform.positio...
2018-08-09 22:08:41
1723
原创 点击目标物体 瞬移到那个物体的位置
using System.Collections; using System.Collections.Generic; using UnityEngine;public class main : MonoBehaviour { private Vector3 point; private Camera camera; bool memory = false;...
2018-08-08 21:06:31
927
原创 Unity 2d物体拖拽实践
这样写拖拽功能会出现延迟现象public class mouseattain : MonoBehaviour {public Texture2D cursorTexture;public CursorMode cursorMode = CursorMode.Auto;public Vector2 hotSpot = Vector2.zero;private Camera cam;...
2018-08-05 17:31:17
2286
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅