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

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

671. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...tor.panel("Test") export class MyPanel extends IEditor.EditorPanel { async create() { this._panel = await gui.UIPackage.createWidget("editorResources/UI/MyWidget.widget"); let input: gui.TextInput = this._panel.getChild("TextInput").getChild("title"); input.on("changed", () => { console.log("改...

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

672. 关于mouseThough=true的问题 [ 53%]

...ot;fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图...

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

673. 场景天空(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 53%]

...质 BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Handler.create(null, function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; skyRenderer.mesh = SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): ![](img/3.png)(图3) **...

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

674. 场景天空(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 53%]

...aseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(null, function(mat) { var skyRenderer = camera.skyRenderer; skyRenderer.mesh = Laya.SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): ![](img/3.png)(图3) 以上使用的天空盒为...

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

675. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 53%]

...en/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //lab...

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

676. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 53%]

.../加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速...

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

677. 2d粒子旋转时大小也会随着改变 [ 53%]

...改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.ad...

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

678. 如何解析json文件并获取某对象值? [ 53%]

... private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容,可...

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

679. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 53%]

...   Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));         changeActionButton.size(160, 40);         changeAction...

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

680. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 53%]

...d(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 骨骼数太大了吧 2018-03-23 0 1 分...

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