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

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

1521. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 41%]

...内容相关的链接 提交 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

1522. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...pescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoa...

来源: Laya2.0_文档 发布时间: 20210714

1523. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 41%]

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

1524. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 41%]

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

1525. 使用百度地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

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

1526. 新手引导在ios浏览器表现异常 [ 41%]

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

1527. 小程序开放域相关 [ 41%]

...{                 trace("接收到数据域的消息 = "+ JSON.stringify(message));                              if( message.type == 1){                     showRank();                 }                 if( message.type == 2){ ...

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

1528. laya.components.Component_API3.0 [ 41%]

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

1529. 微信小游戏报错 the .lh file root type must be Scene [ 41%]

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

1530. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 41%]

...据很简单,只需要调用Socket的send函数即可,参数可以是string或者是ArrayBuffer。 发送字符串格式: ```typescript this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据: ```typescript this.byte.writeByte(1);//写入一个...

来源: Laya2.0_文档 发布时间: 20210714