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

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

21. 为什么动画设置大小不统一 [ 88%]

为什么动画设置大小不统一 var bounds = ani.getGraphicBounds(); ani.scale(img.width/bounds.width,img.height/bounds.height) 这里我获得动画的边界 获取得到 然后img的宽高都是80 我想设置每个动画宽高都为80 这样设置为什么不能实现? 2017-06-29 添加...

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

22. Laya发布的微信包 转360包 的时候,测试报错Uncaught getUint16 error - Out of bounds [ 88%]

...信包 转360包 的时候,测试报错Uncaught getUint16 error - Out of bounds 找不到材质警告    game.js:13450 [warn]Retry to load: res/model31/effect/Assets/Epic Toon FX/Materials/Misc/ring (additive).lmat 附件 : --> 2020-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

23. Laya2.1.0Beta Animator动画可能没有及时更新对应的Bounds, 造成裁剪出问题 [ 88%]

Laya2.1.0Beta Animator动画可能没有及时更新对应的Bounds, 造成裁剪出问题 Laya2.1.0Beta Animator动画可能没有及时更新对应的Bounds, 造成裁剪出问题 关闭Camera.useOcclusionCulling 才能临时解决"看不见" 附件 : --> 没有附件.rar 2019-05-14 添加评论 ...

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

24. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 88%]

加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载...

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

25. 动画设置scale 不正常? [ 88%]

动画设置scale 不正常? var bounds = ani.getGraphicBounds(); 获取得到这个动画的宽高那些  比如说我想设置宽高都是100 100 ani.scale(100/bounds.width,100/bounds.height) 这样不是对的吗,为什么显示出来的动画不是100 100的 附件 : --> Test.zip 2017-06-3...

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

26. 飞机大战实战(第四讲)中的机身居中问题 [ 88%]

...易理解. playAction(action): void { this.body.play(0, true, action); var bounds: Laya.Rectangle = this.body.getBounds(); //设置机身轴心从左上角到中心 this.body.pivot(bounds.width / 2, bounds.height / 2); //设置机身居中 //this.body.pos(-bounds.width/2,-bounds.height/2); }   2018...

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

27. 获取Sprite位置问题 [ 87%]

...d(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Laya.Rectangle = this.body.getBounds();  //this.pos(100,0); console.log(-bound.width/2 + " --- "+ -bound.height/2); }  onPlayComplete():void{  } } 请问为啥bound.width bound.heigh这是0? 2018-04-27 添加评论 ...

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

28. laya.d3.component.staticmesh.StaticBatchMesh_API3.0 [ 87%]

...chMesh Hierarchy StaticBatchMesh Index Constructors constructor Properties bounds Methods destroy setBuffer create Constructors constructor new StaticBatchMesh(): StaticBatchMesh Defined in laya/d3/component/staticmesh/StaticBatchMesh.ts:162 Returns StaticBatchMesh Properties bounds bounds: Bounds D...

来源: Laya3.0_api 发布时间: 20231115

29. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 87%]

...rtDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTexture(this._ag...

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

30. laya.d3.resource.models.MorphTargetData_API3.0 [ 85%]

...etData Hierarchy MorphTargetData Index Constructors constructor Properties bounds elementCount vertexCount vertexDec Accessors channelCount Methods addMorphChannel clone destroy getMorphChannel getMorphChannelbyIndex initData Constructors constructor new MorphTargetData(): MorphTargetData Defined in...

来源: Laya3.0_api 发布时间: 20231115