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

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

771. laya.map.MapLayer_API3.0 [ 48%]

...ties getMousePoint getObjectByName getObjectDataByName getRepaint getScreenPositionByTilePos getSelfBounds getTileData getTileDataByScreenPos getTilePositionByScreenPos get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener ...

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

772. 3D空间转2D空间的问题 [ 48%]

...间我用的是 this.camera.viewport.project(this.playerArray[i].transform.position, this.camera.projectionViewMatrix, this.imgPos2); 转换的坐标到this.imgPos2里面。 像这样的一个场景。加载图片到3D物体上跟着3D物体跑动这样是没有问题的,而我。但当要做的...

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

773. [LayaAirIDE3]skel骨骼动画播放失败,编辑器预览没问题 [ 48%]

...    this.spr_xiaoshan.addChild(this.skeleton);         this.skeleton.pos(0, 0);         this.skeleton.scale(0.3, 0.3);         this.skeleton.play(0, true);     } else {         console.warn("无效的 skeleton, 跳过添加:", templet);     } }});只出现一闪而过,没有...

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

774. laya.ui.DialogManager_API3.0 [ 48%]

...rialize onAwake onDestroy onDisable onEnable once open parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setLockView setSelfBounds set_anchorX set_anchorY set_height set_scale...

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

775. laya.ani.swf.MovieClip_API3.0 [ 48%]

... onAwake onDestroy onDisable onEnable once parentRepaint pivot play playTo pos reCache removeChild removeChildAt removeChildByName removeChildren removeLabel removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_height set_scale...

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

776. 龙骨删除后内存不减少 [ 48%]

...ton = templet.buildArmature(1);                          this.pos1.addChild(this.skeleton);             this.skeleton.play("work", true);         });         templet.loadAni("spine/ndz01/ndz01.sk"); 我龙骨是这样调用的,后面不用了,我就  this.skeleton.des...

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

777. 【字节小游戏】游戏中播放视频 [ 48%]

...Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的...

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

778. 给每个精灵绑定点击事件,但点击精灵的时候时而触发时而不触发点击事件 [ 48%]

...为什么会偶尔触发一次的原因所在   修改方式: 将body的pos坐标去掉,让size值从左上角开始算起即可 2016-11-21 1 3 分享 微博 QZONE 微信 ai834398016 赞同来自: 点击运行结果可以查看,偶尔点击了没反应 GlabRP.zip 2016-11-21 0 3 分享 微博 ...

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

779. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...精灵有如下基础属性: (图2-3) 基础属性 功能说明 位置 Position 精灵的位置坐标 宽高 Size 精灵的宽高 锚点 Anchor 精灵的锚点 缩放 Scale 精灵的缩放 倾斜 Skew 精灵的倾斜角度 旋转 Rotation 精灵的旋转度 可见 Visible 精灵是否可见 透...

来源: Laya3.0_文档 发布时间: 20251010

780. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 48%]

...显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,this,onUp); } private function onUp...

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