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

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

161. 请问laya有没有类似翻页容器(pageView)的组件? [ 44%]

...lic 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 > -1) { if (this.list_rule.scrollBar.value < this.m_dow...

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

162. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 44%]

... = templet.buildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectang...

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

163. Shader预编译(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 44%]

...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function(){ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT","BONE...

来源: Laya2.0_文档 发布时间: 20210714

164. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 44%]

...   {         createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledMap = n...

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

165. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 43%]

...   {         createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledMap = n...

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

166. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 43%]

....getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animator.play("run"); } this._isRun = !this._isRun; } } 二、刚体动画 1,g...

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

167. Shader预编译(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 43%]

...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT",...

来源: Laya2.0_文档 发布时间: 20210714

168. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 43%]

...n.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.te...

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

169. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 43%]

...text.fontSize=30; Laya.stage.addChild(this.text); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.changeAction); } tActionID:number=0; changeAction() { this.tActionID++; var aniCount:number; //获取动画动作数量 aniCount=this.skeleton.getAnimNum(); this.tActionID=this.tActionID%aniCount; //显...

来源: Laya2.0_文档 发布时间: 20210715

170. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 42%]

...ntSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finis...

来源: Laya2.0_文档 发布时间: 20210714