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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)

621. List翻页效果怎么实现 [ 76%]

... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...

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

622. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 76%]

...ixueying 赞同来自:  package { import laya.display.Sprite; import laya.events.Event; import laya.html.dom.HTMLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya....

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

623. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 76%]

...你可以通过自定义事件来实现,在点击按钮时,发送一个event自定义事件,在Sample中对该事件进行监听package { import laya.events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public s...

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

624. 灯光-方向光 [ 76%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion...

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

625. laya.d3.core.Camera_API3.0 [ 76%]

...Children addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAn...

来源: Laya3.0_api 发布时间: 20231115

626. 加载lh格式模型报错 [ 76%]

...file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30899:17)   at EventHandler.runWith (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:999:38)   at Loader.event (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:1038:42)   at Loader.complete (file:///D:/LayaAirPro...

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

627. laya.ui.Slider [ 76%]

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

来源: Laya2.0_api 发布时间: 20190513

628. 分享:IDE使用SWF动画的销毁与反复创建 [ 76%]

...:IDE使用SWF动画的销毁与反复创建 package {     import laya.events.Event;     import laya.net.Loader;     import laya.utils.Handler;     import view.TestView;          public class LayaUISample {                  public function LayaUISample() {        ...

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

629. request failed status:0 text: IOS HttpRequest [ 76%]

...erId:"533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []; headers.push("Content-Type"); headers.push("application/jso...

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

630. laya.ui.List [ 76%]

...| All Classes | Index | Frames No Frames ListProperties | Methods | Events Packagelaya.uiClasspublic class ListInheritanceList Box Component Sprite Node EventDispatcher ObjectImplements IRender, IItem List 控件可显示项目列表。默认为垂直方向列表。可通过UI编辑器自定...

来源: laya_api 发布时间: 20170929