摘要:private _body: Laya.RigidBody; private _speed: number = 20; let radian = this.owner.rotation * Math.PI / 180; // 注意:需要除以 Laya.Browser.pixelRatio let v
阅读全文
摘要:已挂载 Laya.RigidBody 的节点,可以直接挂载脚本并声明 onTriggerEnter、onTriggerStay、onTriggerExit 函数 const { regClass, property } = Laya; @regClass() export class PlayerB
阅读全文
摘要:Laya.createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void Laya.getYawPitchRoll(out: Vector3): void pitch: x轴的旋转角度 y
阅读全文
摘要:export default class Test extends Laya.Script{ protected onAwake():void{ //创建3d场景 let scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 let came
阅读全文
摘要:export default class Test extends Laya.Script{ protected onAwake():void{ let scene = Laya.stage.addChild(new Laya.Scene3D()); console.log(scene); let
阅读全文
摘要:1.Git闪退或打开Unity项目时出现对话框Unity Launch Error 替换C:\Windows\System32\drivers下的null.sys 链接:https://pan.baidu.com/s/1WKWrGb9aKHucV4Fnp88hEw 提取码:2n89 如何确定null
阅读全文