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

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

781. 2D聚光灯 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...setSpotLight(); } // 创建聚光灯 setSpotLight(): void { this.spotLight.pos(336, 280); let spotLightComponent = this.spotLight.getComponent(Laya.SpotLight2D); spotLightComponent.color = new Laya.Color(1, 0.812, 1); spotLightComponent.intensity = 1.0; spotLightComponent.innerRadius = 50; spotLight...

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

782. 手机打开游戏页面,一片空白是什么原因?电脑上是正常的 [ 48%]

...误 undefined:1625 throw new JS_Parse_Error(message, filename, line, col, pos); ^ SyntaxError: Unexpected token operator «=», expected punc «,» at JS_Parse_Error.get (eval at <anonymous> (D:\LayaAirIDE\LayaAir1710N\resources\app\node_modules\layacmd\node_modules\uglify-js\tools\node.js:27:...

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

783. _calculateCacheRect函数有bug [ 48%]

...先登录 发起人 139*****908 相关问题 TypeScript下HttpRequest发送Post请求有Bug? 1.7.20beta有bug,帧属性面板打不开 富文本下划线绘制bug 自从layaflash起,就一直存在的bug Text类中竟然没有pos函数的api~ 【BUG备忘录】关于Tween动画无法正常作用...

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

784. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 48%]

...#FFFFFF';             txt.bold      = true;             txt.pos(60,100);             Laya.stage.bgColor  = '#23238E';             Laya.stage.addChild(txt);         }     } } 2017-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

785. laya.display.AnimationBase_API3.0 [ 48%]

...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage...

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

786. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 48%]

...形比如 var mapMask = new Laya.Sprite(); mapMask.size(100,100); mapMask.pos(50,50); mapMask.graphics.drawCircle(0, 0, 50, "#000000") 我这么获得mapMask的matrix,然后放进graphics.drawTexture中呢? 不要说直接用mask,因为微信小游戏不支持,谢谢 2018-11-25 添加评论 ...

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

787. laya.display.FrameAnimation_API3.0 [ 47%]

...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage...

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

788. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 47%]

...w GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.addChild(hero) Laya.timer.once(3000, this, gameOver) } function gameOver() { map.removeSelf() play.removeSelf() over = new GameOverUI() over.txt_score.text = "25" over.btn_restart.on(Event.MOUSE_UP,thi...

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

789. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 47%]

.../资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this....

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

790. laya.spine.SpineSkeleton_API3.0 [ 47%]

...stroy onDisable onEnable once parentRepaint paused pivot play playbackRate pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild resetExternalSkin resume runCallLater scale setChildIndex setGraphics setMix setSelfBounds setSlotAttachment set_an...

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