不要吧预设放到StreamingAssets目录,无法打包ab
ugui画布相机模式 鼠标位置转ugui位置
Vector3 pos;
RectTransformUtility.ScreenPointToWorldPointInRectangle(transform.GetComponent<RectTransform>(),Input.mousePosition, Camera.main, out pos);
transform.position = pos;
##sad
代码 | 说明 |
. | 匹配除换行符以外的任意字符。 |
w | 匹配字母或数字或下划线或汉字。 |
s | 匹配任意的空白符。 |
d | 匹配数字。 |
b | 匹配单词的开始或结束。 |
[ck] | 匹配包含括号内元素的字符 |
^ | 匹配行的开始。 |
$ | 匹配行的结束。 |
\ | 对下一个字符转义。比如 是 个 特 殊 的 字 符 。 要 匹 配 是个特殊的字符。要匹配 是个特殊的字符。要匹配的话就得用$ |
| | 分支条件,如:x|y匹配 x 或 y。 |