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

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

671. 如何判断一个3d模型是否在摄像机视野内 [ 71%]

...U01 : MonoBehaviour   {          private bool isRenderer = false;       private Renderer renderers;          void Awake ()       {           renderers = transform.GetComponent<Renderer> ();       }          void Update ()  ...

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

672. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 71%]

...我利用下式旋转后,         this.needle.transform.rotate(vect,false,false); 我可以看到模型transform.rotation值的变化,         console.log(this.needle.transform.rotation); 但是,我查看         console.log(this.needle.transform.rotationEuler); 却是却是 undefi...

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

673. Laya2 FlashBuilder编译配置已经不同,请使用这个! [ 71%]

...用了新的编译命令,请使用 "${project_loc}\asconfig.json;iflash=false;chromerun=true;quickcompile=true;out=.laya/temp.js;subpath=" 代替官方教程中的配置!   配置中的true和false大家酌情修改。   ------------------------------ 发现这个只是一个步奏,后面还...

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

674. list 中的scrollbar [ 71%]

...ue;         this._lastOffset=0;         this._checkElastic=false;         this._lastPoint || (this._lastPoint=new Point());         this._lastPoint.setTo(Laya.stage.mouseX,Laya.stage.mouseY);         Laya.timer.clear(this,this.tweenMove);         Tw...

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

675. laya.device.motion.RotationInfo [ 71%]

...otion_data_explained。 需要注意的是,IOS环境下,该值始终为false。即使如此,你依旧可以从alpha中取得正确的值。 RotationInfo  alpha : Number Z轴旋转角度,其值范围从0至360。 若absolute为true或者在IOS中,alpha值是从北方到当前设备方向...

来源: laya_api 发布时间: 20170929

676. 播放视频只有声音没有图像 [ 71%]

... super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.mp3", 0); this.login_game_button.on(Laya.Event.CLICK, this,this.onStartButtonClick); } onStartButtonClick(){ /...

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

677. 在list的data中给HTMLDIVElement 的innerHTML赋值不成功 [ 71%]

...list中添加多元素的item 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 Native2.0正式版...

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

678. 骨骼动画-换装 [ 71%]

...x >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSki...

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

679. 声音播放问题 native下采用Audio播放导致声音每次都是从头播放 [ 71%]

...dManager.playMusic("res/1_3.mp3");         let _pause:boolean = false;         btn1.on(Laya.Event.CLICK,this,()=>{             if(!_pause)return;             sound.pause();             _pause = false         })         btn2....

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

680. laya.net.LocalStorage [ 71%]

...e  items : *[static] 数据列表。 LocalStorage  support : Boolean = false[static] 表示是否支持 LocalStorage。 LocalStoragePublic Methods  MethodDefined By  __init__():void[static] LocalStorage  clear():void[static] 清除本地存储信息。 LocalStorage  getItem(key:String):St...

来源: laya_api 发布时间: 20170929