大约有 1,258 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0120 秒)
Laya_社区(854) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...Images(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); Laya.stage.addChild(animation); animation.play(0, true, "hero_fly"); } } } 假如使用注释里的LoadImage()则可以 2016-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20161026
...eo = new Laya.Video(); video.loop = true; video.load(blob_url); Laya.stage.addChild(video); video.play(); v = video; Laya.timer.once(5000, this, function() { v.destroy(); }); }顺便提供一个简单的修复方法: laya.device.js Line 623: 增加以下代码while(this.videoElement.childElementC...
来源: Laya_社区 发布时间: 20170515
...以直接跳过排版。 ```typescript this.text.text="text"; Laya.stage.addChild(this.text); //后面只是更新文字内容,使用changeText能提高性能 this.text.changeText("text changed."); ``` Text.changeText会直接修改绘图指令中该文本绘制的最后一条指令,这种前面...
来源: Laya2.0_文档 发布时间: 20210714
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addItem bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fre...
来源: Laya3.0_api 发布时间: 20231115
...,是导致我加载lh文件不显示的原因。 var staticMesh = scene.addChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.mesh...
来源: Laya_社区 发布时间: 20161021
...lor = "#ffffff"; var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); ``` 运行效果如图1所示  (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点,而...
来源: Laya2.0_文档 发布时间: 20210715
...hods _initialize _onActive _onInActive _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...
来源: Laya3.0_api 发布时间: 20231115
...cene/TestScene.ls") as Laya.Scene; // scene.enableLight = true; Laya.stage.addChild(scene); } } new GameMain();工程文件在附件,运行后报错 Uncaught Error: LoaderManager:unknown file(G:/LayaTest/bin/TestScene/TestScene.ls) extension with: ls. at LoaderManager.__proto._create (laya.c...
来源: Laya_社区 发布时间: 20171227
...,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + M...
来源: Laya2.0_文档 发布时间: 20210715
...戏后没有显示,怎么解决 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? Laya中Panel控件在设计模式下,添加字内容界面。可以操作出拖动效果吗?就像可以在设计模式...
来源: Laya_社区 发布时间: 20190803