大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
...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
...mport common.Tool; /** * ... * @author */ public class CustomMesh { public function CustomMesh() { 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
...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
...加载本地图片都报错 导微信小程序报错window.focus is not a function IDE通过.ui自动生成的ui代码报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? runtime运行报错! 问题状态 最新活动: 2019-01-25 16:46 浏览: 1808 关注: 2 人 KOOHY ...
来源: Laya_社区 发布时间: 20190125
...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
...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
... 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
...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
...xture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); //平面加载 let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10)));...
来源: Laya_社区 发布时间: 20201127
...ene3D.load("LayaScene_xfg/layaScene.ls",Laya.Handler.create(this,function(_s){ Laya.stage.addChild(_s); })); 这样还是报错 说secne是void
来源: Laya_社区 发布时间: 20180802