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

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

261. laya.display.EffectAnimation_API3.0 [ 59%]

...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...

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

262. laya.device.media.Video [ 59%]

...Sprite  height : Number[override] Video hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hitT...

来源: Laya2.0_api 发布时间: 20190513

263. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 59%]

...iledMap.createMap("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.gr...

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

264. 获取Sprite位置问题 [ 59%]

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

265. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 59%]

... * @param isDrawRenderRect A boolean indicating whether to draw the render rectangle. When true, it starts drawing from (0,0) of the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If t...

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

266. Animation创建时无法获取高度 [ 59%]

....height; console.log("---> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y: 0, width: 0, height: 0}修改anchorY值无效 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞...

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

267. laya.ani.bone.Skeleton_API3.0 [ 59%]

...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...

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

268. WebGL模式下,父容器翻转,导致子显示对象的scrollRect不能正常显示 [ 58%]

...WebGL下会出现此问题,Canvas下正常显示   img.scrollRect = new Rectangle(0, 0, 150, 250); 如果img的父级容器(或者父父。。。级)scaleX设置为-1,就会导致此问题 demo见附件 附件 : --> testUI5.rar 2017-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

269. laya.d3.core.scene.Scene3D_API3.0 [ 58%]

...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...

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

270. laya.media.VideoNode_API3.0 [ 58%]

...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...

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