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

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

581. 官方案例里摄像机绕物体旋转脚本的问题 [ 77%]

...tor3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpd...

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

582. Laya.stage.visible=false不起作用 [ 77%]

...在3d场景中应该怎样实现? Ignored attempt to cancel a touchmove event with cancelable=false Ignored attempt to cancel a touchmove event with cancelable=false Ignored attempt to cancel a touchmove event with cancelable=false islooping的false和true的切换 3D物体active从false设置为t...

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

583. Laya.loader.load加载位图字体 [ 77%]

...          this._data=data;                 this.event(/*laya.events.Event.PROGRESS*/"progress",0.5);                 return this._loadImage(this._url.replace(".fnt",".png"));             }else {                 var bFont=new Bitma...

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

584. [LayaAirIDE3]3.3.0.beta.1 2d碰撞触发问题 [ 77%]

...碰撞体a和b,a为运动学刚体,b为静态刚体,二者均有Laya.Event.TRIGGER_ENTER 和 Laya.Event.TRIGGER_EXIT 的监听,通过修改a的position使其与b进行接触,以实现触发触发器监听,在3.2.2中时是可以触发的,在3.3.0.beta.1中不可以。   附件 : --> ...

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

585. iOS wkWebView [ 77%]

...le.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send('http://tdev.sanguoh5.com:800...

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

586. 【官网代码】加载dom音频报错,怎么回事? [ 77%]

...3-4-1 其中,加载dom音频报错,怎么回事? package{import laya.events.Event;import laya.net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBuffer...

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

587. laya可以转换flash补间动画成h5动画吗? [ 77%]

...来放置到项目的src目录下。    参考:private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onCom); loader.load(new URLReques...

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

588. 请问我用下面的代码发送个简单的http get请求,为什么在电脑上能得到成功输出,在手机上总是得到失败输出呢? [ 77%]

...%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function c...

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

589. laya.ui.Slider [ 77%]

...All Classes | Index | Frames No Frames SliderProperties | Methods | Events Packagelaya.uiClasspublic class SliderInheritanceSlider Component Sprite Node EventDispatcher ObjectSubclasses HSlider, VSlider 使用 Slider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选...

来源: laya_api 发布时间: 20170929

590. 图片添加点击事件 有的不生效 [ 77%]

... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...

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