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

大约有 210 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0132 秒)

201. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

....y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"...

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

202. 预制体模块 · LayaAir3文档 · LAYABOX [ 47%]

...} = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let...

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

203. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...} = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let...

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

204. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...法,使用时重写覆盖即可 */ onStart(): void { this.camera = this.owner as Laya.Camera; if (this.target) { this.target.transform.position.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponen...

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

205. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 45%]

...94)     at RenderSprite3D.__proto._graphics (laya.core.js:6125)     at Owner.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at Component.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at...

来源: Laya_社区 发布时间: 20181120

206. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...wn(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,会释放对象池 mouseUp(e: Event): void { Particle3D.ClearPool(this.filePath); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025...

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

207. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 45%]

...wn(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,会释放对象池 mouseUp(e: Event): void { Particle3D.ClearPool(this.filePath); } } Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2025...

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

208. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

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

209. 通用发布设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

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

210. laya native加载人物模型出错 [ 5%]

...ya.Handler.create(this, function(){  var scene3d=new Laya.Scene3D(); that.owner.addChild(scene);  var model=Laya.loader.getRes(window.getPath("res/3d/baseman01.lh")); var player=model.clone(); scene3d.addChild(player);    }));   然后用android扫描 layanative二维码 ,就会出错 .   [i...

来源: Laya_社区 发布时间: 20190725