摘要:
修改windows窗口的标题名称,就是修改下图的东西: 第一种: 第二种: 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GetComponent : MonoBehaviour { public Transform[] transfor 阅读全文
摘要:
一个canvas下的游戏对象,排列顺序越往下,渲染顺序就越靠后,就会覆盖在先前的图形上。也就是说,运行游戏后,物体的渲染顺序是一个一个计算的. Transform.SetSiblingIndex(int);//设置同级对象的索引,也就是说这个方法可以设置游戏对象是父物体的第几个儿子 Transfor 阅读全文
摘要:
相同的字段名在类或其父类中被多次序列化。这是不支持的, 这里指的是 变量i . 写如下两个脚本挂到新项目的相机上运行就会出现这个问题: 阅读全文
摘要:
public Animator animator; void Start() { animator = this.GetComponent(); } void Update() { AnimatorStateInfo animatorStateInfo =animator.GetCurrentAnimatorStateIn... 阅读全文
摘要:
//(1)字符访问(下标访问s[i]) s ="ABCD"; Console.WriteLine(s[0]); // 输出"A"; Console.WriteLine(s.Length); // 输出4 Console.WriteLine(); //(2)打散为字符数组(ToCharArray) s 阅读全文
该文被密码保护。 阅读全文