大约有 1,292 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0161 秒)
Laya_社区(1020) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本...
来源: Laya_示例 发布时间: 20251209
...t class Main extends Laya.Scene { onAwake(): void { Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{ let aaa = new Laya.Sprite(); this.addChild(aaa); aaa.x = 100; aaa.y = 100; ...
来源: Laya_社区 发布时间: 20250801
...的提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用...
来源: Laya_社区 发布时间: 20161115
...放置view,写了个例子,可以参考下:package { import laya.net.Loader; import laya.ui.List; import laya.ui.View; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height)...
来源: Laya_社区 发布时间: 20170626
预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...
来源: Laya_社区 发布时间: 20180314
...bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.stage.addChild(tab); for(var i:int=0;i<6;i++)//为tab容器添加button { var bt...
来源: Laya_社区 发布时间: 20170626
...怎么调用下载到本地的资源 cuixueying • 2017-05-18 17:10 Laya.loader.load可以对服务器的资源进行预加载,并缓存到本地,Laya.loader.getRes可以获取缓存下的资源文件! 我盼乙卯 • 2018-05-31 15:42 @cuixueying:请问这个缓存到本地是缓存到硬盘...
来源: Laya_社区 发布时间: 20170319
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); //...
来源: Laya2.0_示例 发布时间: 20251209
修复图片加载跨域问题 使用loader.load加载图片出现跨域问题; 看了laya.core.js源码发现图片是用Image对象加载,按道理应该不会出现,尝试去除crossOrigin=""; 发现不出现跨域问题,微信头像可以正常加载 注释掉下面这几行 line:1104...
来源: Laya_社区 发布时间: 20170204
...j.com/api/player/auth/img?key=testpng oppo小游戏下 无法显示 Laya.loader .load( "https://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发...
来源: Laya_社区 发布时间: 20250818