• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 185 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)

181. 使用3D精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...t { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();...

来源: Laya3.0_文档 发布时间: 20251010

182. 时间轴动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动...

来源: Laya3.0_文档 发布时间: 20260128

183. 统计信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...下: const { regClass, property } = Laya; @regClass() export class Demo extends Laya.Script { onEnable(): void { Laya.Stat.elements = [ Laya.StatElement.CT_FPS, Laya.StatElement.CT_DrawCall, Laya.StatElement.M_GPUMemory ]; // 开启统计面板(参数为x,y坐标,默认为0,0) Laya.Stat.show...

来源: Laya3.0_文档 发布时间: 20260128

184. 网络通信 · LayaAir3文档 · LAYABOX [ 25%]

...。下面是一个简单的继承的示范: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.up...

来源: Laya3.0_文档 发布时间: 20250104

185. 使用3D摄像机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 24%]

...gClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//...

来源: Laya3.0_文档 发布时间: 20251010