大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0154 秒)
...aterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube ...
来源: Laya_示例 发布时间: 20261113
...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...
来源: Laya2.0_文档 发布时间: 20210715
...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...
来源: Laya2.0_文档 发布时间: 20210715
...Space/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:305:118) at Function.Laya3D.init (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.d3.js:14694:4) at new Test (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:14:16) ...
来源: Laya_社区 发布时间: 20181228
...el/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res/three...
来源: Laya_示例 发布时间: 20261113
... import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Camera = ...
来源: Laya_示例 发布时间: 20261113
...nds Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Event.MOUSE_DOWN,this,scaleSmall); //添加鼠标抬起事件侦听...
来源: Laya2.0_文档 发布时间: 20210714
...; var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...
来源: Laya_示例 发布时间: 20261113
...导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function 我使用插件导出模型后,用官网的例子加载模型,报错Laya.Scene.load is not a function。 加载代码部分如下: Laya3D.init(1000, 800); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...
来源: Laya_社区 发布时间: 20181107
微信小游戏wxmin图片加载有点问题 MiniFileMgr.copyFile=function(tempFilePath,readyUrl,callBack){ var temp=tempFilePath.split("/"); var tempFileName=temp[temp.length-1]; var fileurlkey=readyUrl.split("?")[0]; var fileObj=null var fileObj=MiniFileMgr.getFileInfo(readyUrl); // 这行会导...
来源: Laya_社区 发布时间: 20180104