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

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

831. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

....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_文档 发布时间: 20251010

832. destination-out 叠加模式问题 [ 41%]

...(range); //sp.scaleY=0.5; guideContainer.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,move); } private function move():void { sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; sp.graphics.clear(); sp.graphics.drawCircle(0, 0, 200,"#0ef604"); } li970704928 • 2017-12-13 19:08 @Laya_Aaro...

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

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

...边缘光照(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

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

...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

835. LayaAir3D 物理系统之鼠标拾取(射线拾取) [ 41%]

...该用什么缓动模式 龙骨skeleton鼠标点击区域的设置 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 Laya 鼠标Cursor怪异问题,有demo LayaAir3D 导出和使用U3D粒子特效 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 问题状态 ...

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

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

...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

837. 加载的时候动画会卡 [ 40%]

...d.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.dh = function(){         this.ani1.play(0,true);         Tween.t...

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

838. Shader预编译(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 40%]

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

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

839. laya.display.Sprite [ 40%]

...用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事件,会自动打开自己以及所有父对象的mouseEnabled=true。所以一般也无需手动设置mouseEnabled。 LayaAir引擎API设计精简巧妙。核心...

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

840. laya.display.Sprite [ 40%]

...用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事件,会自动打开自己以及所有父对象的mouseEnabled=true。所以一般也无需手动设置mouseEnabled。 LayaAir引擎API设计精简巧妙。核心...

来源: laya_api 发布时间: 20170929