大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 基本就是laya默认...
来源: Laya_社区 发布时间: 20180808
...注意:如果为空,则删除所有帧标签! */ __proto.removeLabel=function(label){ if (!label)this._labels=null; else if (this._labels){ for (var name in this._labels){ this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } ...
来源: Laya_社区 发布时间: 20181105
...情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码...
来源: Laya_社区 发布时间: 20170609
...m里面的特定组件,然后加事件这里就不用说了 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 ...
来源: Laya_社区 发布时间: 20180507
...ng"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation, false); });class BlinnPhong_DiffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3...
来源: Laya_示例 发布时间: 20260303
...6): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'GFHomePageView'. 代码如下: export class GFHomePageView extends ui.GFGameHomeUI { static name = "homepageview"; static moreBgNodeName = "morebgnode"; static diamondList: any; stati...
来源: Laya_社区 发布时间: 20170908
... uniqueId = DeviceUtils.getUniqueId(); ConchJNI.RunJS("com.gamepark.casino.functions.loading.mediator.LoadingMediator.onGetUniqueIdCompleteHandler(" + uniqueId + ")"); 在Laya中声明如下: public static function onGetUniqueIdCompleteHandler($uniqueId:String):void { trace("uniqueId : " + uniqueI...
来源: Laya_社区 发布时间: 20180323
...一下Unicode与ascii互转对应表再补充一个writeMultiByte public function writeMultiByte(value:String,charSet:String):void { value = value + ""; if(charSet=="UNICODE" || charSet=="unicode") { ...
来源: Laya_社区 发布时间: 20170407
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...微信开发者工具里会报错(intermediate value)(...) is not a function 向下面这种形式的封装,可以前后都加个分号 ;(function(){ })(); 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20180502