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

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

201. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 49%]

...口如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设置Laya提供worker.js...

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

202. laya.ui.Radio_API3.0 [ 48%]

...rarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffs...

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

203. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 47%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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

204. laya.ui.ComboBox_API3.0 [ 47%]

... ComboBox 实例。 package { import laya.ui.ComboBox; import laya.utils.Handler; public class ComboBox_Example { public function ComboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load("resource/ui/butto...

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

205. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 47%]

...ar xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回data是arraybuffer; //.......这里处理我们加密图...

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

206. laya.ui.ColorPicker_API3.0 [ 47%]

...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load("resource/...

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

207. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 46%]

...r = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回data是arraybuffer; //......这里处理我们...

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

208. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 46%]

...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...

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

209. 图集制作与使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 46%]

...as方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...

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

210. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 46%]

... xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回data是arraybuffer; //.......这里处理...

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