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

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

41. Text 居中 搭配 Tween 显示结果有问题。 [ 76%]

...= 800; txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,不改变位置,结果发现缓动把...

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

42. Laya.loader.load 教程代码出错 [ 76%]

...oadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnImgClick);             OnImgClick();                          var txt:Text = new Text();             txt.text ...

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

43. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 75%]

...nter"; txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

44. 如何在项目中加载ttf字体? [ 75%]

...规"; txt.fontSize = "50"; txt.text = "历史最高分:123456789"; Laya.stage.addChild(txt); txt.width = 100; txt.height = 100; txt.zOrder = 1000; } 但是if里面的不会执行,提示Laya.Browser.window.conch未定义 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

45. 自己写了个label继承官方的label,出现了问题,求指导~ [ 74%]

...DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错-------------------------------------------- var label:Lab...

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

46. 文字显示模糊 [ 73%]

...Height+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,为什么呢?   2018-02-01 0 1 分享 微博 QZONE 微信 186*****590 赞同来自: 同...

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

47. laya.utils.Utils [ 73%]

...t — DOM元素引用  coordinateSpace:Sprite — 坐标空间,不能是Stage引用  x:Number — 相对于coordinateSpace的x坐标  y:Number — 相对于coordinateSpace的y坐标  width:Number — 宽度  height:Number — 高度 getGID()method  public static function getGID():int获取...

来源: laya_api 发布时间: 20170929

48. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 73%]

...ript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); function createTween(){ //"LayaBox"字符串总宽度 var w = 800; //文本创建的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) v...

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

49. laya.utils.Utils [ 72%]

...t — DOM元素引用  coordinateSpace:Sprite — 坐标空间,不能是Stage引用  x:Number — 相对于coordinateSpace的x坐标  y:Number — 相对于coordinateSpace的y坐标  width:Number — 宽度  height:Number — 高度 getGID()method  public static function getGID():int获取...

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

50. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 72%]

...() { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算...

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