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

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

441. tween对Text的缩放,为何会抖动呢? [ 49%]

...a.Text = new Laya.Text();     txt.text = "大家好";     txt.color = "#ff0000";     txt.fontSize = 30;     txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1);     Laya.stage.addChild(txt);          Laya.Tween.to(txt, { scaleX: 2, scaleY:...

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

442. layaair.so 底层崩溃 [ 49%]

...insys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000 >>>>>>>>>>>>>surface not ready >>>>>>>>>>>>>The network has changed D/AES: onEndOfErrorDumpThread...

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

443. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 49%]

...  Laya.stage.scaleMode = Stage.SCALE_SHOWALL;         Laya.stage.bgColor = "#232628";         skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"];         Laya.loader.load(skins, Handler.create(this, onLo...

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

444. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 49%]

...de() { Laya.init(0, 0, WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水平方向始终与浏览器屏幕较短边保持垂直 Laya.stage.screenMode = "horizontal"; //自动竖屏,游戏的水平方向始终与浏览器屏幕较长边保持垂直 ...

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

445. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 49%]

...width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; txt.color = "ff00ff"; //使用我们注册的字体 txt.font = mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static funct...

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

446. 图集打包与动画 [ 49%]

...); Normal是默认动画,就没有问题。 代码如下: let url=this.color+'Emoji.ani'; this.ani=new Laya.Animation(); this.ani.loadAnimation(url); this.addChild(this.ani); this.ani.play(0,true,'XiuXian'); 3、顺便确认一下:Laya中的事件系统,鼠标事件是冒泡的,其他事...

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

447. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 49%]

...fectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVecto...

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

448. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 49%]

...         lineHeight: 40,                         backgroundColor: '#ff0000',                         color: '#ffffff',                         textAlign: 'center',                         fontSize: 16,                         borderRadi...

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

449. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 49%]

... is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class LayaAirTest ...

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

450. 文字在框内滑动、滚动文本 [ 48%]

...his.txt.y=Laya.stage.height-this.txt.height>>1;     this.txt.borderColor="#ffff00";     this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX...

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