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

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

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

...览器版本支持Geolocation。显示Supported表示支持。 ![1](img/1.png) ​ Geolocation返回的GeolocationInfo,包含以下信息: - `latitude` —— 维度(度)。 - `longitude` —— 经度(度)。 - `altitude` —— 相对于海平面的海拔高度(米)。如果设备...

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

132. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 50%]

...h.round(Math.random() * this.intMaxLove); let imgSrc = "comp/heart"+iNum+".png"; let imgLove = new Image(imgSrc); console.log("imgLove ==="+imgLove); console.log("imgSrc === "+ imgSrc); //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._s...

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

133. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 50%]

...est[key]||key;                 fileversion = fileversion.replace(".png",".ktx").replace(".jpg",".ktx");                 Laya.ResourceVersion.manifest[key] = fileversion;             }             var  _this = this;                 let getext = Laya.Utils.getFileE...

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

134. 分享一个Shader版的CoolDown实现 [ 47%]

...罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-...

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

135. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 47%]

...换格式的原始纹理类型                          Non-PNG|JPG       非png| jpg 格式贴图,现在支持 tga,psd,gif,tif,bmp,exr格式                          PNG                      原始场景中所用png格式资源             ...

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

136. 请引擎开发人员不要在用这种写法了 [ 47%]

...仁毅 赞同来自: let img = new Laya.Image(); img.skin = "image.png"; img.destroy();     我这样去使用并没有出现报错,虽然可能不是你的使用情况,但是我这段代码是符合你的简单问题描述的。所以最好你自己提供一个demo。 还有关于希望...

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

137. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 45%]

...模型网格),才可以实现有范围的物理碰撞。 ![img](img/2.png) (图2) 图2是胶囊形状角色碰撞器的编辑预览效果。 ##### 2.1.2 触发器 LayaAir 3D物理的触发器相当于2D物理里的传感器。 触发器是碰撞器的一个属性,任何碰撞器的触发...

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

138. laya.net.LoaderManager_API3.0 [ 44%]

...的单个资源地址或资源信息数组。比如:简单数组:["a.png","b.png"];复杂数组[{url:"a.png",type:Loader.IMAGE,size:100,priority:1},{url:"b.json",type:Loader.JSON,size:50,priority:1}]。 Default value complete: Handler | null = null 加载结束回调。根据url类型不同分...

来源: Laya3.0_api 发布时间: 20231102

139. Laya构建App后AndroidStudio中用真机调试模式下运行,App打开了,但是不能打开游戏的问题。 [ 43%]

...1]:file:///data/data/com.ReleaseTest.Four/LayaCache/localstorage/logo/logo.png 06-20 19:10:19.406 5371-5448/com.ReleaseTest.Four W/LayaBox: download image file error! file:////data/data/com.ReleaseTest.Four//LayaCache//localstorage/logo/logo.png 06-20 19:10:19.941 5371-5400/com.ReleaseTest.Four E/MA...

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

140. laya.ui.Tree_API3.0 [ 43%]

...f";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox.png", "resource/ui/clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this,...

来源: Laya3.0_api 发布时间: 20231115