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

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

461. 请教玩一玩横屏问题 [ 72%]

...竖屏             canvasDegree = 0;             if (rotation) {                 if (_screenMode === SCREEN_HORIZONTAL) {                     mat.rotate(Math.PI / 2);                     mat.translate(screenHeight / pixe...

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

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

...提供相应的接口供开发者直接调用。    目前我们有提供Iflash.setSize方法让开发者发布固定机型尺寸,比如960*640类似。     如果setSize方法不设置,就会实现全屏显示,但是这样有可能会导致显示拉伸。      如果想要获取浏览...

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

463. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 72%]

...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

464. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 72%]

...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

465. 骨骼动画-橡胶人 [ 72%]

...; } 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

466. 输入设备-摇一摇 [ 72%]

... { 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

467. UI 组件中list自动滚动到list底部或者顶部 [ 72%]

...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

468. 骨骼动画-适配版Spine [ 72%]

...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

469. layaair2.0默认字体设置无效 [ 72%]

...  public function set font(value:String):void {             if ((_style as TextStyle).currBitmapFont) {                 _getTextStyle().currBitmapFont = null;                 scale(1, 1);             }             if (_bitmapFonts...

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

470. 图片显示异常 [ 72%]

...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