大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0115 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...方式 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
...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
...更换声音文件失败 在wxmini中关于声音的管理 __proto.load = function (url) { url = URL.formatURL(url); this.url = url; this.readyUrl = url; if (MiniSound._audioCache[this.readyUrl]) { ...
来源: Laya_社区 发布时间: 20180503
...动,你需要手动去改变新添加精灵的位置,像这样 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
... 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
...跟踪代码,发现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
...或者读取时出现乱码 在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
...序 但是分享功能加不进去 网上都说 Page({ onShareAppMessage: function () { } }) 这样就行了 但是我这边提示 Page is not defined ReferenceError: Page is not defined 我要是单独写 onShareAppMessage: function () { } 他就提示 onShareAppMessage is not defined 2018-04-11 ...
来源: Laya_社区 发布时间: 20180411
...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
...。 Static getItemByCreateFun getItemByCreateFun(sign: string, createFun: Function, caller?: any): any Defined in laya/utils/Pool.ts:99 根据传入的对象类型标识字符,获取对象池中此类型标识的一个对象实例。 当对象池中无此类型标识的对象时,则使用传入...
来源: Laya3.0_api 发布时间: 20231115