大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...ew Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height); }); 报错bitmap._addReference is not a function TypeError: bitmap._addReference is no...
来源: Laya_社区 发布时间: 20180504
...init(1, 1); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, updatePosition), Laya.Handler.create(this, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` 由于本例不需要使用...
来源: Laya2.0_文档 发布时间: 20210715
...atorControllerLayer.ts:57 层的名称。 playOnWake playOnWake: boolean = true Defined in laya/d3/component/AnimatorControllerLayer.ts:63 激活时是否自动播放。 Static BLENDINGMODE_ADDTIVE BLENDINGMODE_ADDTIVE: number = 1 Defined in laya/d3/component/AnimatorControllerLayer.ts:18 混合模...
来源: Laya3.0_api 发布时间: 20231102
...gSayBg.skin = "res/room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.valu...
来源: Laya_社区 发布时间: 20170911
...锯齿,但会增加性能消耗 Laya.Config.isAntialias=true; //初始化舞台 Laya.init(500, 300, WebGL); drawSomething(); })(); function drawSomething() { var canvas...
来源: Laya2.0_文档 发布时间: 20210715
...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp...
来源: Laya_示例 发布时间: 20260303
... = this.generateRectVerticesAndUV(1000, 1000); mesh2Drender.lightReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] ...
来源: Laya3.0_文档 发布时间: 20251010
... 查看 MainActivity 中: mPlugin.game_plugin_set_option("localize","true"); mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index.html"); PS: 已注释 checkApkUpdate 方法,直接 initEngine 。 2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20171115
...olean value) { Log.d("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(); }...
来源: Laya3.0_文档 发布时间: 20250422
...* this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.La...
来源: Laya2.0_示例 发布时间: 20260303