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

大约有 1,158 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0051 秒)

121. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 82%]

...次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确...

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

122. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 82%]

...次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确...

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

123. UI-Input [ 81%]

...(function() { var Stage = Laya.Stage; var TextInput = Laya.TextInput; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL);...

来源: Laya_示例 发布时间: 20240929

124. 图集动画没有显示 [ 81%]

...r AniConfPath = 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(...

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

125. UI-Input [ 81%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

来源: Laya2.0_示例 发布时间: 20240929

126. 滤镜-发光滤镜 [ 81%]

...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePat...

来源: Laya2.0_示例 发布时间: 20240929

127. Sprite-显示图片 [ 81%]

...y1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module ...

来源: Laya2.0_示例 发布时间: 20240929

128. 用Geolocation获取地理位置信息(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 81%]

...次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确...

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

129. 内存释放问题 [ 81%]

...e: Laya.Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {...

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

130. 请教——layabox如何加载多个图集 [ 81%]

...yabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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