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

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

31. 发射射线检测不到,物体有包围盒 [ 70%]

...ne3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(...

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

32. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

..."; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; this.owner.addChild(ta); } } (代码中的图片资源来自“引擎API使用示例”项目,开发者可以自行创建下载) 运行结果: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine...

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

33. [LayaAir3]创建自由光源,形状是否有错误? [ 69%]

...      freelightLayer.y = startY + gap * 2;             this.owner.addChild(freelightLayer);              let freeStartX = 0;//startX + gap * 2;             let freeStartY = 0;//startY + gap * 2;             let freeformLight2D = freelightLayer.addComponent(Laya.FreeformLi...

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

34. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then...

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

35. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then...

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

36. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...ke(): void { let sprite = new Laya.Sprite(); // 添加到舞台 Laya.stage.addChild(sprite); } 3.2 显示图片 图片的显示是游戏开发的基础,Sprite类中用于显示图片是 Sprite.loadImage 和 Sprite.texture。 3.2.1 loadImage /** * <p>加载并显示一个图片。相当于加...

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

37. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 69%]

..., this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, fal...

来源: Laya2.0_文档 发布时间: 20210715

38. 一个没有动作的骨骼动画 替换插图没有用 [ 69%]

...qb.on(Laya.Event.STOPPED,this,this.changeSkin);         this.owner.addChild(this.skebqb);         this.skebqb.pos(500, 600);         this.changeSkin();     }      changeSkin(){         this.skebqb.replaceSlotSkinName("chuandiwu","","bianbian");       ...

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

39. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 69%]

... //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55     at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9)     at LoveControl.createLoveArr (file:///E:...

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

40. UNITY导出的模型旋转不了 [ 68%]

...ne.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new La...

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