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

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

21. 如何获取微信小游戏 关系链文档中提到的上屏? [ 88%]

...*****260 赞同来自: 使用window.canvas.getContext('2d') 报错: Cannot set property '__proto__' of null TypeError: Cannot set property '__proto__' of null     at HTMLCanvasElement.n.getContext (http://127.0.0.1:51595/game/__ ... :23503)     at LayaUISample.__proto.drawfriendicon ( 2018-03-26...

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

22. 网站不能正常访问的问题 [ 88%]

...yadownload/?type=layaair 出现下面的报错 X-Frame-Options may only be set via an HTTP header sent along with a document. It may not be set inside <meta>. jquery.js?v=laya_20170705:9645 GET https://official.layabox.com/g ... 55948 net::ERR_CONNECTION_REFUSED send @ jquery.js?v=laya_2017070...

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

23. 分享:IDE报错...Configure nextgenas.java, add to $PATH, or set $JAVA_HOME [ 88%]

分享:IDE报错...Configure nextgenas.java, add to $PATH, or set $JAVA_HOME 这个是由于java的版本导致的报错,开发者可以下载下这个地址的java环境,不要使用百度进行下载! http://www.oracle.com/technetw ... .html 2017-04-18 添加评论 免费帖 --> 分享 ...

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

24. laya.device.media.Video_API3.0 [ 88%]

...ties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name videoElement CAMERA MP4 OGG SUPPORT_MAYBY SUPPORT_NO SUPPORT_PROBABLY WEBM drawtocanvCtx Accessors active activeInHierarchy alpha blendMode buffered cacheAs components currentSrc currentTime customRenderEnable ...

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

25. 关于创建Sprite获取大小 [ 88%]

...getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture.sourceHeight _this.scaleY = _this.set_height / texture.sourceHeight })) kez...

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

26. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 87%]

...sition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public loadMainDatas() { Laya.loader.load([ { url: "res/ui/UIComponents@atlas0.png", type: Loader.IMAGE }, { url: "res/ui/UIComponents.fui", type: Loader.BUFFER }, {...

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

27. Laya2.0 LocaRotationEuler引起LookAt的错误 [ 87%]

... bobo.transform.localRotationEulerX = 0;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性方法内进行修改,代码如下: set localRotationEulerX(value) { var localEuler = this.localRotationEuler; localEuler.x = value; this....

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

28. laya.d3.core.light.LightSprite [ 87%]

...过 callLater 函数设置),则立即执行延迟调用函数。 Node setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node timerLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true, jumpFrame:Boolean = false):void 定时重复执...

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

29. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 87%]

...就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2D(settings);             sp.emitter.start();    ...

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

30. 真机上随机报错 [ 87%]

...tas (http:/22222.com/libs/laya.d3.js:24049:39) at ShurikenParticleRenderer.set mesh [as mesh] (http://2222.com/libs/laya.d3.js:22303:41) at ShuriKenParticle3D._cloneTo (http://222222.com/libs/laya.d3.js:24966:34) at Function._parseSprite3DInstance (http://222222.com/libs/laya.d3.js:6954:20) at Funct...

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