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

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

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

...e(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F1...

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

502. TiledMap加载报错 relativePath为空 [ 42%]

...ayer = Laya.MapLayer; Laya.init(800, 800); var map1 = new TiledMap(); map1.createMap("res/maps/scence1.json",new Rectangle(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "layers":[ { "data":[7...

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

503. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 42%]

...后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个CheckBox实例cb1 var cb1 = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200); //...

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

504. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 42%]

...   Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));         changeActionButton.size(160, 40);         changeAction...

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

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

...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.stage.addChild(cb1); //设置checkbox的坐标位...

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

506. laya.ui.List_API3.0 [ 42%]

...g", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Array = [];//创建一个数组,用于存贮列表的数据信息。 for (var i:int = 0; i < 20; i++) { arr.push({label: "item" + i}); } v...

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

507. laya.ui.Tree_API3.0 [ 40%]

...urce/ui/clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'>&amp...

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

508. 关于截屏的问题 [ 40%]

...--------------------4"); Laya.Browser.window.globalImage = window.document.createElement("img"); console.log("onCharge-------------------------5"); Laya.Browser.window.globalImage.onload=function() { console.log("onCharge-------------------------6"); } console.log("onCharge-------------------------7...

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

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

...267. Path: E:/model/LayaScene_/Assets/Main-dat:yunlong System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131) System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/m...

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

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

...Sprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,取消物理反馈 staticCollider.isTrigger = true; ...

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