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

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

421. 请问HTMLDivElement怎么加垂直滚动条 [ 52%]

...(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动条而且还漏了。 var str = "<div style='positio...

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

422. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 52%]

...idth,height); var sp =new BK.Sprite(200,200,tex,0,1,1,1); BK.Director.root.addChild(sp); }else if(openID == openID2){ ... } } BK.MQQ.Account.getHead(openID1, callback); BK.MQQ.Account.getHead(openID2, callback);  =============================================================== [b]问题已解决,...

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

423. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 52%]

...CLICK,this,readnext);         //添加到舞台     Laya.stage.addChild(this.bgimg);     }     function onLoading(progress)     {         console.log("加载进度: " + Math.floor(progress*100)+"%");     }     function onError(err)     {         co...

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

424. 限制区域拖动效果,为什么会无法限制呢? [ 51%]

...as", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 中心点...

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

425. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 51%]

...Page.graphics.drawRect(0,0,300,300,"#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage:MonkeyPageUI = new MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRect(0,0,3...

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

426. laya.display.Input_API3.0 [ 51%]

...ordWrap x y zOrder Methods _initialize _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater changeText clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce ...

来源: Laya3.0_api 发布时间: 20231115

427. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 51%]

...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...

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

428. 在UI编辑器里可以看到位图字体,但是进入游戏后没有显示,怎么解决 [ 50%]

...(); test.font=this.mFontName; test.text = "这是一个文本"; Laya.stage.addChild(test); } 2017-08-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Lyr1 相关问题 写个捕鱼游戏练练手 解决跨域...

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

429. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 50%]

...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...

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

430. 分享一个Shader版的CoolDown实现 [ 50%]

...); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- import Shader = laya.webgl.shader.Shader;     export class coolDownShader extends Shader {         /**          * 当前着色器的一个...

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