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

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

1531. 问题10600的复现方式 [ 75%]

...方式 package { import laya.webgl.WebGL; public class LateTest { public function LateTest() { Laya.init(100,100,WebGL); Laya.timer.callLater(this,onLater); Laya.timer.clearAll(this); } private function onLater():void{ trace("xxx"); } } } 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1532. laya.ui.Clip_API3.0 [ 75%]

...rt laya.ui.Clip; public class Clip_Example { private var clip:Clip; public function Clip_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.pn...

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

1533. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 75%]

...更换声音文件失败 在wxmini中关于声音的管理 __proto.load = function (url) {             url = URL.formatURL(url);             this.url = url;             this.readyUrl = url;             if (MiniSound._audioCache[this.readyUrl]) {    ...

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

1534. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 75%]

...动,你需要手动去改变新添加精灵的位置,像这样 private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } pri...

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

1535. 微信小游戏利用开放域好友关系链做排行榜 [ 74%]

...         year: (new Date()).getFullYear()         },null,function(message){             let wx = Laya.Browser.window.wx;             let openDataContext = wx.getOpenDataContext();              var rankTexture:Laya.Texture = new Laya.Texture(Laya....

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

1536. runtime运行报错! [ 74%]

...跟踪代码,发现laya.ui.js里代码如下:  View.getCompInstance=function(json){       var runtime=json.props ? json.props.runtime :"";       var compClass=runtime ? (View.viewClassMap[runtime] || Laya["__classmap"][runtime]):View.uiClassMap[json.type];      return compClass ? new c...

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

1537. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 74%]

...或者读取时出现乱码 在laya.bkadpter.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var d...

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

1538. 小程序分享问题 [ 74%]

...序 但是分享功能加不进去 网上都说 Page({ onShareAppMessage: function () { } }) 这样就行了 但是我这边提示 Page is not defined ReferenceError: Page is not defined 我要是单独写 onShareAppMessage: function () { } 他就提示 onShareAppMessage is not defined 2018-04-11 ...

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

1539. laya.html.dom.HTMLIframeElement_API3.0 [ 74%]

...Node.ts:218 Parameters node: Node Returns Node callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:611 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

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

1540. laya.utils.Pool_API3.0 [ 74%]

...。 Static getItemByCreateFun getItemByCreateFun(sign: string, createFun: Function, caller?: any): any Defined in laya/utils/Pool.ts:99 根据传入的对象类型标识字符,获取对象池中此类型标识的一个对象实例。 当对象池中无此类型标识的对象时,则使用传入...

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