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

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

1171. 请问UI之间的场景切换要怎么写 [ 79%]

请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...

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

1172. ReferenceError: Loading_fly is not defined [ 79%]

...掉了   2017-11-07 0 0 分享 微博 QZONE 微信 apeCom 赞同来自: var Loading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig....

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

1173. unity 导出模型 [ 79%]

...LE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), tru...

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

1174. 动画-图集动画 [ 79%]

...is.AniConfPath, this.createAnimation); } private createAnimation(): void { var ani: Animation = new Animation(); ani.loadAtlas(this.AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画...

来源: Laya2.0_示例 发布时间: 20241002

1175. Node.prototype.removeChildren移除计数有问题 [ 79%]

...x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = childs.splice(beginIndex, endIndex - beginIndex); } for (var...

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

1176. 屏幕适配要怎么做?能否详细点呢 [ 79%]

...显示拉伸。      如果想要获取浏览器的宽高    //[IF-JS]var fullScreenWidth = Laya.window.innerWidth;    //[IF-JS]var fullScreenHeight = Laya.window.innerHeight;        如果想要改变舞台的缩放模式,可以使用stage.scaleMode    如果你的项目是页游项...

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

1177. 获取lh动画控制失败【已解决】 [ 79%]

...已解决】   //方法一:直接异步加载             var layaMonkey:Sprite3D = scene.addChild(Sprite3D.load(url+"LayaScene_sharedunity/sharedunity.lh")) as Sprite3D;                          var zombieAnimator:Animator =layaMonkey.getChildAt(0).getCompone...

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

1178. Sprite-旋转缩放 [ 79%]

...t): void { this.ape.rotation += 2; //心跳缩放 this.scaleDelta += 0.02; var scaleValue: number = Math.sin(this.scaleDelta); this.ape.scale(scaleValue, scaleValue); } } } new laya.Sprite_RoateAndScale();package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; impo...

来源: Laya2.0_示例 发布时间: 20241002

1179. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 79%]

...颜色 dircom.color.setValue(1.0, 0.5, 0.0, 1); //设置平行光的方向 var mat: Laya.Matrix4x4 = directlightSprite.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directlightSprite.transform.worldMatrix = mat; setForward 平行光的方向,分别代表x、y、z轴上...

来源: Laya3.0_文档 发布时间: 20240624

1180. 滤镜-模糊滤镜 [ 79%]

...Path, Handler.create(this, this.createApe)); } private createApe(): void { var ape: Sprite = new Sprite(); ape.loadImage(this.apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); this.applayFilter(ape); } private applayFilter(a...

来源: Laya2.0_示例 发布时间: 20241002