大约有 73 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
...2018-04-16 14:39 浏览: 1190 关注: 2 人 wq • 2018-04-16 15:25 public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conch)") { //获取loadingview的实例 dd=__JS__("window.loadingView"); 通过loading方法...
来源: Laya_社区 发布时间: 20180416
...ationFrame || win.oRequestAnimationFrame || win.msRequestAnimationFrame || function (fun: any): any { return win.setTimeout(fun, 1000 / 60); } initRender()为画布初始化函数,创建和保存了WebGL上下文环境。如需更改canvas的参数,如设置是否抗锯齿,请在初始化引...
来源: Laya_社区 发布时间: 20200925
laya加载unity插件导出的场景 physics3D is not a function unity 导出的场景 放入LayaAir5.1里面加载 有 physics3D 引用。 但是一直报 laya.d3.js:14694 Uncaught TypeError: physics3D is not a function at Function.Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at Sce...
来源: Laya_社区 发布时间: 20181227
...如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.ca...
来源: Laya_社区 发布时间: 20170323
...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...
来源: Laya_社区 发布时间: 20171113
...ptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function [b]Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Sprite3D.__proto.onAsynLoaded (http://127.0.0.1...
来源: Laya_社区 发布时间: 20180307
...BUG,下面附上示例,麻烦测试一下,我用的是1.7.1JS版的function MousePickingScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasor...
来源: Laya_社区 发布时间: 20170323
...戏项目。 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at MyScene.__proto.onAsynLoaded (http://127.0....
来源: Laya_社区 发布时间: 20180317
...容相关的链接 提交 1 个回复 qian 赞同来自: var LayaAir3D = (function () { function LayaAir3D() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("res/LayaScene_1/1.ls"...
来源: Laya_社区 发布时间: 20180320
... 0, 0)); var point = new Laya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...
来源: Laya_示例 发布时间: 20261113