大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
...内容相关的链接 提交 2 个回复 shiyang12345 赞同来自: var xmlString="<data>"+ "<dir name='shi' num='10000' state='已集结' time_pro='' isOpen='true'>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000'...
来源: Laya_社区 发布时间: 20170717
...pescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoa...
来源: Laya2.0_文档 发布时间: 20210714
...SBridge.java 中 添加了一个方法 public static void copyToClip(final String text){ ClipboardManager cm = (ClipboardManager) mMainActivity.getSystemService(Context.CLIPBOARD_SERVICE); // 创建普通字符型ClipData ClipData mClipData = ClipData.newPlainText("Label", text); // 将Cli...
来源: Laya_社区 发布时间: 20170531
... 2.5 onError函数: ```java private onError(e: any): void { var errType: string; if (e.code = Laya.Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (e.code == Laya.Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (e.code == Laya.Geolocation.TIMEOUT...
来源: Laya2.0_文档 发布时间: 20210714
...中。 2.5 onError函数: private onError(e: any): void { var errType: string; if (e.code = Laya.Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (e.code == Laya.Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (e.code == Laya.Geolocation.TIMEOUT) er...
来源: Laya3.0_文档 发布时间: 20251010
...wTips(posX: number, posY: number, width:number,height:number,skinRes: string) { this.tipContainer = new Laya.Image(); this.tipContainer.size(width, height); this.tipContainer.skin = skinRes; t...
来源: Laya_社区 发布时间: 20200119
...{ trace("接收到数据域的消息 = "+ JSON.stringify(message)); if( message.type == 1){ showRank(); } if( message.type == 2){ ...
来源: Laya_社区 发布时间: 20180525
...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Defined in laya/components/Component.ts:35 Accessors awaked get awaked(): boolean Defined in laya/components/Component.ts:86 Returns boolean destroyed get destroyed(): boolean Defined in laya/components/Component.ts:93...
来源: Laya3.0_api 发布时间: 20231115
... file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); thi...
来源: Laya_社区 发布时间: 20180323
...据很简单,只需要调用Socket的send函数即可,参数可以是string或者是ArrayBuffer。 发送字符串格式: ```typescript this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据: ```typescript this.byte.writeByte(1);//写入一个...
来源: Laya2.0_文档 发布时间: 20210714