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

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

931. matter.js mouseconstraint在微信小游戏中无效 [ 50%]

...中mouseConstraint无法拖拽刚体,ide里是正常的。添加Matter.Events.on(mouseConstraint, 'mousedown')测试,微信小游戏里有响应,但e.mouse里的参数无效 chrome调试输出mouse参数正常。  微信小游戏里参数NaN。 2018-05-20 0 0 分享 微博 QZONE 微信 为什...

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

932. laya.d3.core.RenderableSprite3D [ 50%]

... | Index | Frames No Frames RenderableSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class RenderableSprite3DInheritanceRenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses Glitter, MeshSprite3D, ShuriKenParticle3D, SkinnedMeshSpri...

来源: laya_api 发布时间: 20170929

933. laya.display.Stage [ 50%]

... All Classes | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage ...

来源: laya_api 发布时间: 20170929

934. GlowFilter和TimeLine/Tween一起用的问题 [ 50%]

... t.to(glowFilter, {blur: 1}, 200, null, 0);         }         t.on(Event.COMPLETE, this, function(){             sp.filters = null;         });         t.play(0, true);     };   (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cl...

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

935. laya.display.FrameAnimation_API3.0 [ 50%]

...ld addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponen...

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

936. laya.ani.swf.MovieClip_API3.0 [ 50%]

...ld addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getC...

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

937. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 50%]

...ircle(0, 0, 20, "#990000"); Laya.stage.addChild(sp);    Laya.stage.on(Event.MOUSE_MOVE, this, function() {     sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ``` ​ ![图片1.png](img/1.png) ​ (图1) ​ 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置...

来源: Laya2.0_文档 发布时间: 20210715

938. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 50%]

...布微信游戏后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIn...

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

939. 程序当中更改适配模式后,没有生效成相对应的适配模式效果是为什么? [ 50%]

...是为什么? 游戏内容当中,检测横竖屏: Laya.stage.on(Laya.Event.RESIZE, this, this.onResize); /** 更改适配*/ public onResize() { var stageWidth = Laya.Browser.clientWidth; var stageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya...

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

940. laya.d3.core.RenderableSprite3D [ 50%]

... | Index | Frames No Frames RenderableSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class RenderableSprite3DInheritanceRenderableSprite3D Sprite3D Node EventDispatcher ObjectSubclasses MeshSprite3D, PixelLineSprite3D, ShuriKenParticle3D, SkinnedMeshSprite3D, TerrainChun...

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