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

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

361. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 58%]

.../atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigRank(); /...

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

362. laya.d3.graphics.IndexBuffer3D_API3.0 [ 58%]

.../IndexBuffer3D" IndexBuffer3D Class IndexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 IndexBuffer3D 类用于创建索引缓冲。 Hierarchy IndexBuffer IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _...

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

363. getimagedata直接调用无法获取有效像素问题 [ 58%]

...Texture         Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function()         {             var t = Laya.loader.getRes("../../res/apes/monkey2.png");             var ape = new Sprite();             ape.graphics.drawTexture(t, 0, 0);           ...

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

364. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 58%]

...布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Primitiv...

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

365. 官网的LayaRender无法开启角度指示器 [ 58%]

官网的LayaRender无法开启角度指示器 var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: true, showAngleIndicator: true //无法开启 } });   哎,为什么你们习惯要开发者上传Demo给你们发...

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

366. 开发数据域报错wx.getFileSystemManager is not a function [ 58%]

...Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域Laya.MiniAdpter.sendJsonDataToDataContext("j...

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

367. [LayaAir3]脚本上的参数全部消失 [ 58%]

...消失 请问下自定义时间怎么获取发送时的参数 Laya.Handler.create 加载图片回调参数问题 在浏览器可以运行 在微信开发者工具 可以运行 当在微信小游戏预览的时候 点击事件全部都消失了。。。 http 请求 once 的 回调参数,如何传...

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

368. 关于组件问题咨询 [ 58%]

...enDataViewer,子域,排行榜 自定义组件发布之后报:can not create:ScaleButton ,发布之前正常,发布前后代码也被更改了 自定义组件如何实现图片资源拖动获取路径 prefab预制组件怎么创建 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler...

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

369. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 58%]

... ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机 ...

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

370. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 58%]

...板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderSha...

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