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

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

1451. laya.net.ResourceVersion [ 69%]

...urceVersion  enable(manifestFile:String, callback:Handler, type:int = 2):void[static] 启用资源版本管理。 由于只有发布版本需要资源管理。因此没有资源管理文件时,可以设置manifestFile为null或者不存在的路径。 ResourceVersionPublic Constants ConstantDef...

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

1452. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 69%]

...tion  clone():* 克隆。 TextureSheetAnimation  cloneTo(destObject:*):void 克隆。 TextureSheetAnimationProperty Detailcyclespropertypublic var cycles:int循环次数。enableproperty public var enable:Boolean是否启用enableUVChannelsproperty public var enableUVChannels:intUV通道类型...

来源: laya_api 发布时间: 20170929

1453. matter 2d 碰撞检测 [ 69%]

...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

1454. 安卓机截图变成黑块,ios和pc没问题 [ 69%]

...色色块,安卓机就只能看到黑色色块了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

1455. timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! [ 69%]

...  var b:number = 1; Laya.timer.once(100,this,this.play,[b]);   在play():void{   }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 185*****207 赞同来自: 新人...

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

1456. 射线检测报错,outHitInfo.sprite3D=null; [ 69%]

...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

1457. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...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

1458. 射线检测-碰撞器混合 [ 69%]

...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

1459. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...//组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(2...

来源: Laya3.0_文档 发布时间: 20251010

1460. ios原生回调问题 [ 69%]

ios原生回调问题 + (void)getVersion:(NSString *) url{     [[conchRuntime GetIOSConchRuntime] callbackToJSWithObject:self methodName:@"getVersion:" ret:@"me too"]; } 函数内这段代码执行后会报错,我就想返回一个字符串,这样写有啥问题呢? 2017-04-27 添加评论 ...

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