大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
...竖屏 canvasDegree = 0; if (rotation) { if (_screenMode === SCREEN_HORIZONTAL) { mat.rotate(Math.PI / 2); mat.translate(screenHeight / pixe...
来源: Laya_社区 发布时间: 20180712
...提供相应的接口供开发者直接调用。 目前我们有提供Iflash.setSize方法让开发者发布固定机型尺寸,比如960*640类似。 如果setSize方法不设置,就会实现全屏显示,但是这样有可能会导致显示拉伸。 如果想要获取浏览...
来源: Laya_社区 发布时间: 20160322
...is.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this....
来源: Laya2.0_文档 发布时间: 20210715
...is.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this....
来源: Laya2.0_文档 发布时间: 20210715
...; } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = ...
来源: Laya_示例 发布时间: 20260303
... { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.instance.stop(); console.text += "停止接收设备摇动"; } } })(); module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Shake = Laya.Shake; imp...
来源: Laya_示例 发布时间: 20260303
...crollToBottom=function(caller,callback){ var page=this.msgList.length - 8; if(page < 0)page=0; page +=1; if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback)); else this.list.tweenTo(page,0); } 2019-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20190226
...rror() { console.log("parse error"); } play() { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); } } new SpineBinary;import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Stage = Laya.Stage; import ...
来源: Laya2.0_示例 发布时间: 20260303
... public function set font(value:String):void { if ((_style as TextStyle).currBitmapFont) { _getTextStyle().currBitmapFont = null; scale(1, 1); } if (_bitmapFonts...
来源: Laya_社区 发布时间: 20190128
...dex) => { var hotShow: boolean = false; var newShow: boolean = false; if (index >= 3 && index < 8) { hotShow = true; } if (index >= 11 && index < 16) { newShow = true; } data.push({ gameName: { text: item.name }, gameIcon: { skin: item.pic }, hot: { visible: hotS...
来源: Laya_社区 发布时间: 20200805