大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0057 秒)
Laya_社区(277) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(30) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
...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
...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
... 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
...de() { Laya.init(0, 0, WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水平方向始终与浏览器屏幕较短边保持垂直 Laya.stage.screenMode = "horizontal"; //自动竖屏,游戏的水平方向始终与浏览器屏幕较长边保持垂直 ...
来源: Laya2.0_文档 发布时间: 20210714
...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
...); 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
...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
... lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, borderRadi...
来源: Laya_社区 发布时间: 20180911
... 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
...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