大约有 3,979 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...么原因 //转换2D屏幕坐标系统到3D正交投影下的坐标系统 var pos2d:Point = new Point(posX, posY); this.bottomScene.localToGlobal(pos2d); var pos:Vector3 = new Vector3(pos2d.x, pos2d.y, 0); var _translate:Vector3 = new Vector3(0, 0, 0); camera.convertScreenCoordToOrthographicCoord(po...
来源: Laya_社区 发布时间: 20180319
...掉了 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
...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
...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_示例 发布时间: 20250220
...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
...显示拉伸。 如果想要获取浏览器的宽高 //[IF-JS]var fullScreenWidth = Laya.window.innerWidth; //[IF-JS]var fullScreenHeight = Laya.window.innerHeight; 如果想要改变舞台的缩放模式,可以使用stage.scaleMode 如果你的项目是页游项...
来源: Laya_社区 发布时间: 20160322
...已解决】 //方法一:直接异步加载 var layaMonkey:Sprite3D = scene.addChild(Sprite3D.load(url+"LayaScene_sharedunity/sharedunity.lh")) as Sprite3D; var zombieAnimator:Animator =layaMonkey.getChildAt(0).getCompone...
来源: Laya_社区 发布时间: 20180122
...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_示例 发布时间: 20250220
...颜色 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_文档 发布时间: 20250103
...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_示例 发布时间: 20250220