摘要:
1、标题 一级标题 输入一个‘#’+空格就代表标题 二级标题 三级标题 四级标题 五级标题 六级标题 2、文字 加粗 高亮 id: Unique identifier (alphanumerical, MongoDB_id) title: 'Challenge Title' challengeTyp 阅读全文
摘要:
解构赋值:简化对象和数组的取值方式 解构赋值是ES6规范中新增的功能,它允许我们从对象和数组中提取值,并直接进行赋值。它让代码更加简洁和易读。 1. 使用传统方式从对象中取值 假设我们有一个对象 props: javascript const props = { name: 'Arto Hellas 阅读全文
摘要:
O3DE 是否会成为游戏引擎界的“Blender” O3DE的前世今生 上个月Epic Games 也加入了Open 3D Foundation(O3DF),伴随着Epic Games 的加入,O3DF已有Adobe、亚马逊 AWS、华为、英特尔、LightSpeed Studios、微软和Nian 阅读全文
摘要:
Application Application 类没有实例方法和实例属性,在脚本中可以直接调用Application类的静态方法和静态属性来控制程序运行时的数据,比如场景加载,数据的加载等。 Application类常用静态属性 在Application类中,常用的属性主要是dataPath 和 l 阅读全文
摘要:
最近迁移项目到UnityXR框架,发现UnityXR框架使用了新的输入系统(InputSystem)然后就学习了一下。 using System.Collections; using System.Collections.Generic; using UnityEngine; using Unity 阅读全文
摘要:
如何使用事件创建动态的“广播”系统。 事件 EventManager using UnityEngine; using System.Collections; public class EventManager : MonoBehaviour { public delegate void Click 阅读全文
摘要:
使用属性可以将其他行为附加到所创建的方法和变量。在本视频中,您将学习属性的格式以及如何使用“Range”和“ExecuteInEditMode”属性。 SpinScript using UnityEngine; using System.Collections; public class SpinS 阅读全文
摘要:
DelegateScript using UnityEngine; using System.Collections; public class DelegateScript : MonoBehaviour { delegate void MyDelegate(int num); MyDelegat 阅读全文
摘要:
MotionScript using UnityEngine; using System.Collections; public class MotionScript : MonoBehaviour { public float speed = 3f; void Update () { transf 阅读全文
摘要:
如何创建协程并使用它们来实现复杂的行为。 CoroutinesExample using UnityEngine; using System.Collections; public class CoroutinesExample : MonoBehaviour { public float smoo 阅读全文