大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0125 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...urceVersion enable(manifestFile:String, callback:Handler, type:int = 2):void[static] 启用资源版本管理。 由于只有发布版本需要资源管理。因此没有资源管理文件时,可以设置manifestFile为null或者不存在的路径。 ResourceVersionPublic Constants ConstantDef...
来源: Laya2.0_api 发布时间: 20190513
...tion clone():* 克隆。 TextureSheetAnimation cloneTo(destObject:*):void 克隆。 TextureSheetAnimationProperty Detailcyclespropertypublic var cycles:int循环次数。enableproperty public var enable:Boolean是否启用enableUVChannelsproperty public var enableUVChannels:intUV通道类型...
来源: laya_api 发布时间: 20170929
...gine, 'collisionActive', this.onCollision); private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(pair.bodyA.label === 'gun' && pair.bodyB.label == "gameover") { this.onGameOver(); } } } private onGameOver(): void { cons...
来源: Laya_社区 发布时间: 20180524
...色色块,安卓机就只能看到黑色色块了private function test():void { var sp1:Sprite = new Sprite(); sp1.graphics.drawRect(0,0,300,200,"#ff0000"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlC...
来源: Laya_社区 发布时间: 20181121
... var b:number = 1; Laya.timer.once(100,this,this.play,[b]); 在play():void{ }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 185*****207 赞同来自: 新人...
来源: Laya_社区 发布时间: 20180331
...mera : Laya.Camera; private scene: Laya.Scene; public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):void{ this.ray...
来源: Laya_社区 发布时间: 20181020
...JSBridge", "java: " + value); return value ? false : true; } public static void testAsyncCallback(String json) { //js thread try { JSONObject root = new JSONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new R...
来源: Laya3.0_文档 发布时间: 20250422
...ce, Laya.Handler.create(this, this.onLoadFinish)); } public onLoadFinish():void{ this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")) as Laya.Scene; //初始化照相机 this.camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.C...
来源: Laya_示例 发布时间: 20260303
...//组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(2...
来源: Laya3.0_文档 发布时间: 20251010
ios原生回调问题 + (void)getVersion:(NSString *) url{ [[conchRuntime GetIOSConchRuntime] callbackToJSWithObject:self methodName:@"getVersion:" ret:@"me too"]; } 函数内这段代码执行后会报错,我就想返回一个字符串,这样写有啥问题呢? 2017-04-27 添加评论 ...
来源: Laya_社区 发布时间: 20170427