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

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

131. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 66%]

...不行,无论是Laya.Tween.to(lamp.transform, {localScale:Vector3.zero}, 500); 还是Laya.Tween.to(lamp.transform.localScale, {x:1, y:1, z:1}, 500);都没有反应,是不是我调用的方式不对呢 ? 2017-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

132. 问一下tween的一些参数怎么设置 [ 66%]

...,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000,Ease.backIn,Handler.create(t...

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

133. 绘制直线与折线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 66%]

...    constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }           private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.ad...

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

134. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 66%]

...n Sprite_DrawShapes()         {             Laya.init(500, 300, WebGL);             drawSomething();         }           private function drawSomething():void         {             sp = new Sprite();            ...

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

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

...;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || Browser.window.webkitAudioContext;audioContext = new AudioContext();analyser = audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickH...

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

136. 这样的panel请问如何实现比较好? [ 64%]

...L = Laya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(tex...

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

137. laya.display.Scene [ 64%]

...注册了任何侦听器。 EventDispatcher  hideLoadingPage(delay:int = 500):void[static] 隐藏loading界面 Scene hitTestPoint(x:Number, y:Number):Boolean 检测某个点是否在此对象内。 Sprite isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDis...

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

138. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 63%]

...tSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微...

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

139. DialogManager设置弹出效果后,第一次能打开,第二次就打不开了。 [ 62%]

...              Laya.Tween.to(dialog,{y:Laya.stage.height+50},500,Laya.Ease.backOut,Handler.create(this,(e)=>{                     e.close(false);                 },[dialog]));             },[],false); 设置完closeEffectHandler 为什...

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

140. 2D物理-桥 [ 62%]

...argetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleBody = newBall.addComponent(Laya.RigidBody); circleBody.bullet = true; let circleCollider = newBall.addComponent(La...

来源: Laya2.0_示例 发布时间: 20240930