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

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

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

...lor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.s...

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

862. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab...

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

863. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 40%]

... //初始化引擎 Laya.init(100,100); var skins:any = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮...

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

864. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

...Color = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //...

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

865. 如何实现3d遮罩效果? [ 39%]

...ivate function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切...

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

866. Laya.Pool用法 [ 39%]

...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 关于__JS__的用法有没有相关教程或者例子链接 贝塞尔用法 Matrix4x4的decompose函...

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

867. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 39%]

...体都不行,请问怎么才能加载预制体,这个方法报错 Laya.loader.create,单独运行子域项目是没问题 177*****949 • 2018-11-08 20:25 @嘿哈 还没有解决吗 ? bingo • 2018-11-16 18:03 我也出现这个问题了,怎么解决呢 bingo • 2018-11-18 10:55 Laya.MiniA...

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

868. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 38%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

来源: Laya3.0_文档 发布时间: 20240528

869. laya.ui.Button_API3.0 [ 38%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","la...

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

870. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 38%]

...码,可以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).G...

来源: Laya3.0_文档 发布时间: 20230303