• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)

101. 射线BUG [ 61%]

...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

102. Mesh网格-自定义网格 [ 60%]

...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

103. 自定义loadingView [ 60%]

...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

104. laya2.0正式版设计界面报错,系统为win10 [ 60%]

...加载本地图片都报错 导微信小程序报错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

105. ScrollRect设置会引起其他的UI资源无法正在显示 [ 60%]

...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

106. 官方技术文档中的问题 [ 60%]

...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

107. 导出的3D资源加载报错 [ 60%]

...      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

108. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 59%]

...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

109. 3D网格添加刚体后设置欧拉角出现位置错误 [ 59%]

...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

110. laya空项目怎么加载unity带出的.ls文件 [ 59%]

...ene3D.load("LayaScene_xfg/layaScene.ls",Laya.Handler.create(this,function(_s){ Laya.stage.addChild(_s); })); 这样还是报错 说secne是void

来源: Laya_社区 发布时间: 20180802