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

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

851. 关于intersects碰撞的疑问 [ 47%]

...sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交了"); }发布如下:   2016-12-03 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ...

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

852. 请问HTMLDivElement怎么加垂直滚动条 [ 47%]

...垂直滚动条 this.chat_lab = new Laya.HTMLDivElement(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动...

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

853. putimagedata 不起作用 [ 46%]

...Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); data = Laya.Browser.context.getImageData(0, 0, 400, 400) distort(data) })); } })();[/i][/i][/i] 2017-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

854. laya.ui.WXOpenDataViewer_API3.0 [ 46%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos postMsg reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex setSelfBounds set_anchorX set_anchorY set_bottom set_data...

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

855. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 46%]

...ure.video.videoWidth; image.height = videoTexture.video.videoHeight; image.pos(100,100); Laya.stage.addChild(image); //目前LayaAir2.0引擎暂时没有提供刷新纹理机制,需要手动刷新。或者你可以试用LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer...

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

856. laya.media.VideoNode_API3.0 [ 46%]

...e onAwake onDestroy onDisable onEnable once parentRepaint pause pivot play pos reCache reload removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_height set_scaleX set...

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

857. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 46%]

...aya.Browser.width;// + ', r=' + this.row + ',' + this.col;         txt.pos(0, 0);         Laya.stage.addChild(txt);     } } 代码很简单,什么都没有jsh就是获取宽高。只测试了Android、iPhone6两个手机,iPhone6就出了两个问题。 1、竖屏时刷新几次,宽...

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

858. laya.ui.UIComponent_API3.0 [ 46%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...

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

859. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 46%]

...能够获取“鼠标是否处于按下状态”? Text类中竟然没有pos函数的api~ 关于shader中opengl函数问题 请问 《学习开发HTML5游戏《打地鼠》(LayaAir引擎)TS》的视频教程是否有配到代码下载? 節點的destroy方法參數默認為true時是否會遞...

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

860. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

... (n) => { return n * this.fontSize + this.verticalSpace; }; this.sprite.pos(x + w-this.fontSize-this.horizontalSpace, 0); for (let i = 0; i < this.text.length; i++) { const element = this.text.charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element,...

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