大约有 517 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
...ayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7...
来源: Laya2.0_文档 发布时间: 20210715
...e: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handler.create(this, onAssetsLoaded)); } init(); function onAssetsLoaded() { var tTexture = Loader.getRes(mTexturePath); var arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); ...
来源: Laya_示例 发布时间: 20241117
...script //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ //获取到Meshsprite3d var cube:MeshSprite3D = scene.addChild(sp.getChildAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...e: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { const Loader = Laya.Loader, Templet = Laya.Templet, Event = Laya.Event; let tTexture = Loader.getRes(mTexturePath); let arraybuffer = Loader.getRes(mAniPath); mFactory = new T...
来源: Laya2.0_示例 发布时间: 20241117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.createText(); this.start(); } start() { const Sprite = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number...
来源: Laya2.0_示例 发布时间: 20241117
....bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); //按钮标签字体大小 com...
来源: Laya2.0_文档 发布时间: 20210714
...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...
来源: Laya2.0_文档 发布时间: 20210714
...eMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(this, function(mat:BaseMaterial):void { //设置相机的清除标识为天空盒 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空...
来源: Laya2.0_文档 发布时间: 20210715
... CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", ...
来源: Laya_社区 发布时间: 20171012
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...
来源: Laya_社区 发布时间: 20151202