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

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

681. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 61%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

682. 图片mask失效问题. [ 61%]

...kimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500, Handler.create(this,function():void{ photoimg.removeChild(maskimg); })); }); 必须这么写才行 先添加 在移除 ljy328803417 • 2018-02-26 17:40 我也出现了上面的问题,结果发现是显示对象没高宽问...

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

683. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 61%]

...ck/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化...

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

684. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 61%]

....img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest...

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

685. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 61%]

... onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya...

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

686. 播放声音异常 [ 61%]

...le.log("播放音效"); Laya.SoundManager.playSound("res/AK47.mp3", 1, new Handler(this, this.onComplete));     很简单的调用就崩溃了,麻烦看看,谢谢!!! 附件 : --> 2018-06-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

687. socket.sent [ 61%]

socket.sent 下面是复制的源码 openHandler 和 receiveHandler 没有响应  class Game { private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 //Laya.init(600, 400, Laya.WebGL); Laya.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stag...

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

688. 滤镜的集中实现 [ 61%]

...ge.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴...

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

689. 加载资源时同时加载两遍 [ 61%]

...0); this.tiledmap.createMap("../laya/assets/map/beitianting.json",viewRect,Handler.create(this,onMapCreated)); }   仙魔世界测试.rar 2017-11-20 0 0 分享 微博 QZONE 微信 layaxiaohu 赞同来自: 主角图片没有显示出来 2017-11-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...

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

690. 材质-BlinnPhong材质加载 [ 61%]

...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_示例 发布时间: 20251219