大约有 73 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...ull TypeError: Cannot set property 'createCommandEncoder' of null at Function.Laya3D.__init__ (file:///C:/Users/zyl/Downloads/LayaAirIDE_beta%20(1)/resources/app/out/vs/layaEditor/h5/renders/uiviewer/Editor.max.js:86236:40) 2018-11-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20181022
...化shader ```typescript //初始化我们的自定义shader public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMatrix': La...
来源: Laya2.0_文档 发布时间: 20210715
...layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ap...
来源: Laya_社区 发布时间: 20190927
...sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm"))); sprite3d2 = scene.addChild(new Laya.MeshSprite3D(Laya...
来源: Laya_示例 发布时间: 20261113
...ene3D.load("LayaScene_xfg/layaScene.ls",Laya.Handler.create(this,function(_s){ Laya.stage.addChild(_s); })); 这样还是报错 说secne是void
来源: Laya_社区 发布时间: 20180802
...n 赞同来自: 你的js类 最基本的东西都丢了 var LayaAir3D = (function () { function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat...
来源: Laya_社区 发布时间: 20180605
...的层级文件在附件中,laya加载代码如下: var LayaAir3D = (function () { function LayaAir3D() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show();...
来源: Laya_社区 发布时间: 20180116
...erial(); Laya.Texture2D.load( "res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Te...
来源: Laya_社区 发布时间: 20200917
... private var _stateMachine:StateMachine; public function LayaSample() { Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Stat.show();...
来源: Laya_社区 发布时间: 20190416
...en/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1...
来源: Laya_示例 发布时间: 20261113