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

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

551. laya.display.Input [ 54%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

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

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

....COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-...

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

553. 图片居中的问题 [ 53%]

...自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize);   function onResize() {     var scale,scaleX,scaleY;     scaleX = Browser.clientWidth/480;     scaleY = Browser.clientHeight/720;     scale = scaleX > scaleY ? scaleX : sc...

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

554. 为什么使用 HTMLDivElement 有%号,文字太长的时候%号会换到第二行? [ 53%]

...的时候%号会换到第二行? var text = new HTMLDivElement(); Laya.stage.addChild(text); text.color = "#fff"; text.style.fontSize = 24; text.innerHTML = "子弹命中率:<span style='color: #ee452c'>25</span>\/50 50%";     用的是最新版本 2017-03-26 添加评论 免费...

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

555. laya.ui.ScaleBox_API3.0 [ 53%]

...ox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx ...

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

556. laya.media.VideoNode_API3.0 [ 53%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

557. 键盘事件监听时间间隔问题 [ 53%]

...面间隔就正常,这是什么问题要如何解决呢?谢谢! Laya.stage.on(Event.KEY_DOWN, this, this.onKeyDown);   // 回调时间时隔 move right1: characterX: 200, currTime: 1486458463.82 move right1: characterX: 204, currTime: 1486458464.338 move right1: characterX: 208, currTime: 148...

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

558. laya.ui.UIComponent_API3.0 [ 53%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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

559. laya.device.media.Video_API3.0 [ 53%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

560. 请问如何获取触屏上两个或者更多位置的坐标 [ 53%]

...   this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);                 Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove);             }         }         p...

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