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

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

691. 材质-BlinnPhong材质加载 [ 60%]

...Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class BlinnPhongMaterialLoad { private var rotation:Vector3 = new Vector3(0, 0...

来源: Laya_示例 发布时间: 20240930

692. 高级应用-Laya3D与网页混合 [ 60%]

... import laya.events.Event; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Laya3DCombineHtml { public function Laya3DCombineHtml() { __JS__("var div = document.createElement('div')"); __JS__("div.innerHTML = '此内容来...

来源: Laya_示例 发布时间: 20240930

693. 关于大量图片加载绘制后的内存暴增的疑问 [ 60%]

...e; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载...

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

694. 示例 骨骼动画换装 加不上点击事件 [ 60%]

....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE ...

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

695. ttf字体带版本号会导致加载不正常 [ 60%]

...tName="fzy3jw"; ttfloader.load("font/fzy3jw.ttf"); ttfloader.complete=Laya.Handler.create(this,()=>{ let txt:Laya.Text=new Laya.Text(); txt.text=""; txt.font="fzy3jw"; txt.fontSize=50; Laya.stage.addChild(txt); })我应该修改哪里? 附件 : --> 2019-04-03 添加评论 免费帖 --> 分享 ...

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

696. 更新到1.7.6beta之后,HBox有bug [ 60%]

...0); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case...

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

697. img点击事件。点击图片外,也触发了事件。请问怎么解决 [ 60%]

...e.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.loader.load("res/img/m1.jpg",Laya.Handler.create(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100);   ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,I...

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

698. 事件绑定不触发bug [ 60%]

... = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = Laya.WebGL;         var sp;                  function callback(event) {             console.log(" callback test");         }             ...

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

699. RadioGroup 如何联动 [ 60%]

...的链接 提交 1 个回复 Laya_Aaron 赞同来自:  用这个rg.selectHandler = new Handler(this, onSelectChange); 在onSelectChange里面实现功能 2018-01-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题...

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

700. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 60%]

...newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stage.bgColor = "#ffffff"; // var bgs = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.s...

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