大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0070 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...
来源: Laya3.0_api 发布时间: 20231115
...oader来加载url Laya.loader.load(url, Handler.create(this,showImg,[url]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); } ``` 第...
来源: Laya2.0_文档 发布时间: 20210714
...rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.clearColor = null; //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vecto...
来源: Laya_社区 发布时间: 20180820
... from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: Label; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); ...
来源: Laya2.0_示例 发布时间: 20251223
...pescript //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码...
来源: Laya2.0_文档 发布时间: 20210714
...数需要为true。 // let socket = new Laya.Socket("192.168.1.2", 8899, null, null, true); 2.1.2 connect 方法 先创建 Socket 对象,再调用 connect(host, port) 建立连接。 let socket = new Laya.Socket(); socket.connect("192.168.1.2", 8899); //如果需要wss安全协议,第3个参数...
来源: Laya3.0_文档 发布时间: 20251010
...ou are still trying to access it. Your script should either check if it is null or you should not destroy the object. MeshUitls.writeSkinnerMesh (UnityEngine.SkinnedMeshRenderer skinnedMeshRenderer, System.String meshName, System.IO.FileStream fs, System.Int32 MaxBoneCount) (at ./Library/PackageCach...
来源: Laya_社区 发布时间: 20240111
... Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1; // 设置主角的位置 this...
来源: Laya_社区 发布时间: 20170525
... I/0: connected type=1 I/ViewRootImpl: jank_removeInvalidNode jank list is null D/OpenGLRenderer: HWUI Binary is enabled disableOutlineDraw is true W/InputMethodManager: startInputReason = 5 W/cr_CrashFileManager: /data/user/0/com.layabox.test/cache/WebView/Crash Reports does not exist o...
来源: Laya_社区 发布时间: 20190723
...aphics.drawTexture(texture, 0, 0); }), null, Laya.Loader.IMAGE ); } // 可视化边界 private visualizeBoundaries() { const graphics = new Laya.Sprite(); this.owner.addChild(graphics); ...
来源: Laya_社区 发布时间: 20251125