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

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

1401. skin加载url资源不会刷新 [ 65%]

...Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void {             var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);             var ape: Sprite = new Sprite();             ape.graphics.drawTexture(t, 0, 0...

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

1402. 无法触发浏览器文件上传框 [ 65%]

...'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = ne...

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

1403. 图片如何切割 AS3 [ 65%]

...0,100,200,200);  img.graphics.drawTexture(t);  img.graphics.restore();  this.addChild(img); 2019-01-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Laya07 相关问题 请问LayaAir中如何使图片以圆形的方式显示? Textu...

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

1404. 微信web H5 加载微信头像的时候 有些能显示有些不行 [ 65%]

...像的时候 有些能显示有些不行  data.face 是微信头像地址 this.uFace 是 laya.ui.Image this.uFace.loadImage(data.face, 0, 0, 50, 50, Handler.create(this, graphicsImg)) function graphicsImg() { //创建遮罩对象 var cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 cMas...

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

1405. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 65%]

...ript Laya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh) { //....省略中间 //读取导出的桌子模型 var table = scene.addChild(new Laya.MeshSprite3D(mesh)); //给桌子加刚体并且设置刚体属性 var rigidBody = table.addComponent(Laya.Rigidbody3D...

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

1406. Mesh模型能否动态合并? [ 65%]

...ew Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //Laya.timer.frameLoop(1, this, function () { // layaMonkey.transform.rotate(this.rotation, false); //}); }这种是没法合并的吧!100个drawcall 2018-03-29 0 0 分享 微博 QZONE 微信 jinqi166 赞同来自: 我的游戏比较特殊,场景...

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

1407. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回0的情况 [ 65%]

...***233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return false } ...

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

1408. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 65%]

...贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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

1409. 2.0场景问题? [ 65%]

...,而且我有个按钮  var buttonMy,但是在处理函数里面输出this是这个场景,而我this.buttonMy却是一个undefind?有没有大佬知道呀? 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

1410. 分享:关于自定义场景继承的实现 [ 65%]

...类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; import {base} from "../script/base/BaseScene"; import Base...

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