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

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

231. 使用laya官方示例代码制作微信小游戏无法显示 [ 79%]

...为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canvas // Laya.init(800, 600, W...

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

232. IOs使用手动删除本地资源再次进去加载问题 [ 79%]

..., type : Laya.Loader.IMAGE},     ]     Laya.loader.load(res_array, Handler.create(null, onLoaded)); }  function onLoaded() {     var res_array = [         {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS},     ]     Laya.loader.load(res_array, Handler.create(null,...

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

233. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 79%]

... new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x,data.tower[towerLel].y,data.t...

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

234. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 79%]

...`typescript //3d场景加载 Scene3D.load("res/TerrainScene/XunLongShi.ls",Handler.create(null,function(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 ...

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

235. UI编辑发布后运行lose skin [ 79%]

...行lose skin import WebGL = Laya.WebGL; import Begin = ui.testUI; import Handler = Laya.Handler; import Loader = Laya.Loader; // 程序入口 class GameMain{ private begin: Begin; constructor() { Laya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.c...

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

236. 滤镜-颜色滤镜 [ 79%]

...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; o...

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

237. 获取动态更新的文本内容 [ 78%]

... {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Lo...

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

238. ui list 里面的元素不能点击两次 [ 78%]

ui list 里面的元素不能点击两次 你好,咱们list list.selectHandler = new Handler(this, onSelect); 只能获取一次点击事件么? 如何修改才能让list里面的元素 可以被连续点击?  附件 : --> 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

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

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

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

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

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