大约有 1,590 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1189) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(35) Laya2.0_api(13) laya_api(12)
...Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camer...
来源: Laya2.0_文档 发布时间: 20210715
...的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0) 重新获取纹理然后将textureHost设置为new_texture sprite.shaderValue.textureHost = new_texture 其他的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.V...
来源: Laya_社区 发布时间: 20180531
...submit? var tempSubmit:Submit = Submit.createShape(context, mIBBuffer, mVBBuffer, mEleNum, _indexStart, Value2D.create(ShaderDefines2D.SKINMESH, 0)); transform || (transform = Matrix.EMPTY); transform.t...
来源: Laya_社区 发布时间: 20190628
...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Lay...
来源: Laya_示例 发布时间: 20241119
...center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite...
来源: Laya2.0_示例 发布时间: 20241119
...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new Prefab(version?: number): Prefab Overrides Resource._...
来源: Laya3.0_api 发布时间: 20231115
... if(!this.tempRect){ this.tempRect = Rectangle.create(); } if (this.cacheRect) this.cacheRect.recover(); this.cacheRect = null; return this; } _calculateCacheRect...
来源: Laya_社区 发布时间: 20210615
... } Laya.loader.load(arr,Handler.create(this,LoadComplated)); } private function LoadComplated(e:*=null):void { Laya.stage.addChild(img); img.on("click",this,OnIm...
来源: Laya_社区 发布时间: 20170918
...图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图...
来源: Laya2.0_文档 发布时间: 20210715
...idth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#0...
来源: Laya_社区 发布时间: 20180522