大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
.../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
.../IndexBuffer3D" IndexBuffer3D Class IndexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 IndexBuffer3D 类用于创建索引缓冲。 Hierarchy IndexBuffer IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _...
来源: Laya3.0_api 发布时间: 20231115
...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
...布功能生成 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
官网的LayaRender无法开启角度指示器 var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: true, showAngleIndicator: true //无法开启 } }); 哎,为什么你们习惯要开发者上传Demo给你们发...
来源: Laya_社区 发布时间: 20180120
...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
...消失 请问下自定义时间怎么获取发送时的参数 Laya.Handler.create 加载图片回调参数问题 在浏览器可以运行 在微信开发者工具 可以运行 当在微信小游戏预览的时候 点击事件全部都消失了。。。 http 请求 once 的 回调参数,如何传...
来源: Laya_社区 发布时间: 20240201
...enDataViewer,子域,排行榜 自定义组件发布之后报:can not create:ScaleButton ,发布之前正常,发布前后代码也被更改了 自定义组件如何实现图片资源拖动获取路径 prefab预制组件怎么创建 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler...
来源: Laya_社区 发布时间: 20180625
... ["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
...板 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