大约有 207 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
...All Inherited Externals Only exported Menu Globals "laya/resource/NativeContext" NativeContext Class NativeContext Hierarchy NativeContext Index Constructors constructor Properties _buffer _byteArray _fdata _idata sprite ARRAY_BUFFER_REF_COPY ARRAY_BUFFER_REF_REFERENCE ARRAY_BUFFER_TYPE_CMD ARRAY_BU...
来源: Laya3.0_api 发布时间: 20231102
请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 Graphic drawTextures () method public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。 pos:Array — 绘制次数和坐标。 请教第二个...
来源: Laya_社区 发布时间: 20170405
...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material; let res1 = Laya.Sp...
来源: Laya_社区 发布时间: 20190717
... package { import laya.utils.Handler; import laya.display.Text; import laya.display.Animation; import laya.webgl.WebGL; import laya.media.Sound; import laya.webgl.shapes.Ellipse; import laya.display.Stage; import laya.ui.Label; import...
来源: Laya_社区 发布时间: 20170921
...color = new Laya.Color(1, 1, 1); spritelightComponent.intensity = 0.5; let tex = Laya.loader.getRes("resources/spritelight.png"); spritelightComponent.spriteTexture = tex; } // 配置方向光 setDirectLight(): void { let directlithtComponent = this.directLight.getComponent(Laya.DirectionLight2D); d...
来源: Laya3.0_文档 发布时间: 20251010
...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...
来源: Laya2.0_文档 发布时间: 20210715
...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...
来源: Laya2.0_文档 发布时间: 20210714
...her: { cfg: "res/self/gltfMode/gltfBin/beautyResource/blusher/dress.json", tex: "res/self/gltfMode/gltfBin/beautyResource/blusher/beauty.png" }, eyelid: { cfg: "res/self/gltfMode/gltfBin/beautyResource/eyelid/dress.json", tex: "res/self/gltfMode/gltfBin/beautyResource/eyelid/beauty.png" }, ... } ```...
来源: Laya2.0_文档 发布时间: 20210715
...eBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D...
来源: Laya2.0_文档 发布时间: 20210714
...0px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;">' + 'cheese</span>' + '</div>' + '</foreignObj...
来源: Laya3.0_文档 发布时间: 20251010