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

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

371. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 78%]

...MeshSprite3D;         box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);         var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {            ...

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

372. 导入3D模型有问题 [ 78%]

... 3));         camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false);         camera.clearColor = null;   //添加自定义模型        var mesh = scene.addChild(new Laya.Sprite3D.load("res/dg/dg.lh"));        mesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) ...

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

373. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 78%]

...onsole.log('onStartDragPicture e', e); } 返回的信息: Event _stoped: false currentTarget: Stage {focus: null, designWidth: 1307, designHeight: 758, canvasRotation: false, canvasDegree: 0, …} nativeEvent: MouseEvent {isTrusted: true, screenX: 906, screenY: 460, clientX: 457, clientY: 278, …...

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

374. outlaya=true 现在没有用了吗 怎么还是只生成一个js文件 我现在是使用1.7.7版本 [ 78%]

...译的,编译参数"${project_loc}\.actionScriptProperties;iflash=false;outlaya=true;windowshow=false;chromerun=false;quickcompile=true" cuixueying • 2017-07-19 15:55 我编译没有问题,你重新创建一个项目看看,如果还不行,可以找下管理员帮你远程看下...

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

375. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 78%]

...n(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一接口:随机播一条 * ------------------------------------------------- */ public playRan...

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

376. 材质-BlinnPhong-高光贴图 [ 78%]

...(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); v...

来源: Laya_示例 发布时间: 20260303

377. webview · LayaAir3.0文档 · LAYABOX [ 78%]

...。 canclose参数用来控制这个webview是否能被关掉: 设置为false时: 代码如下: document.addEventListener('touchstart',()=>{ if(conch){ var l = 50; var t = 50; var w = window.innerWidth - l * 2; var h = window.innerHeight - t * 2; conch.setExternalLinkEx('http://www.layabox.co...

来源: Laya3.0_文档 发布时间: 20230303

378. laya.device.motion.Gyroscope [ 78%]

...atcher  off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher[override] 取消指定处理器对陀螺仪的监视。 Gyroscope offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher ...

来源: laya_api 发布时间: 20170929

379. [LayaAir3]Laya.Sprite3D的active的bug [ 78%]

...它们随着和相机之间的夹角变化,会自动给active设true或false 那么由于它们非常靠近嘛,就应当差不多同时出现同时消失的对吧 可事实上,那第二个创建的精灵不会消失,关键我按空格,将其active打印出来了,就是false了 如图右...

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

380. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 78%]

...        camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光         var directionLight = new Laya.DirectionLight();         scene.addChild(directionLight);         //设置平行光颜色    ...

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