大约有 344 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(179) Laya3.0_api(65) Laya2.0_文档(28) Laya_示例(17) Laya3.0_文档(14) Laya2.0_示例(14) Laya2.0_api(14) laya_api(13)
...otation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contain...
来源: Laya3.0_api 发布时间: 20231115
...otation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contai...
来源: Laya3.0_api 发布时间: 20231115
...代码如下:package { import laya.display.Sprite; import laya.display.Text; import laya.ui.Image; import laya.webgl.WebGL; public class TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); tex...
来源: Laya_社区 发布时间: 20160514
基础文本(Text)1. LayaAir IDE中使用Text1.1 创建Text1.2 属性介绍1.3 Syntax属性1.4 脚本控制Text2. 代码创建Text基础文本(Text) Text继承于Sprite,是静态文本的基础组件。这里我们介绍一下Text专属的组件属性。 1. LayaAir IDE中使用Text 1.1 ...
来源: Laya3.0_文档 发布时间: 20251010
...加载多个地址导致位图输出重 构造函数中是 this.setDataByTextureList("\n6+", ["res/fontadd/num6.fnt","res/fontadd/num+.fnt"]); private setDataByTextureList(value:string, urls:string[]){ for(var i=0;i<urls.length;i++){ var bitmapFont: BitmapFont = new BitmapFont(); var url=ur...
来源: Laya_社区 发布时间: 20190705
...= 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } } } //初始化微信小游戏 Lay...
来源: Laya_社区 发布时间: 20180529
... = "#0e277a"; Laya.stage.frameRate = "fast"; Config.atlasEnable = true; Text.CharacterCache = false; Text.setTextRightToLeft(); //设置文字排版模式为右到左。 Styles.labelColor = "#FFFFFF"; Font.defaultColor = "#FFFFFF"; Font.defaultSize = 36; Font.defaultFamily = "Arial"; //Arial 微...
来源: Laya_社区 发布时间: 20180705
... 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 Text类中竟然没有pos函数的api~ MiniAdpter.autoCacheFile=true没有任何作用,并没有缓存资源 lineCap不起作用,什么原因了? 时间冒泡了,stopPropagation 不起作用 var text = new Laya.Text();...
来源: Laya_社区 发布时间: 20180130
...lInheritanceLabel UIComponent Sprite Node EventDispatcher ObjectSubclasses TextInput Label 类用于创建显示对象以显示文本。 See alsolaya.display.TextPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是...
来源: Laya2.0_api 发布时间: 20190513
... * @author laya_Aaron(小明) */ import laya.display.Text; public class HelloLayabox { public function HelloLayabox() { //创建舞台,默认背景色是黑色的 Laya.init(600...
来源: Laya2.0_文档 发布时间: 20210715