大约有 1,108 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)
Laya_社区(584) Laya3.0_api(207) Laya2.0_文档(82) Laya_示例(59) laya_api(46) Laya3.0_文档(45) Laya2.0_api(44) Laya2.0_示例(41)
...的文本let t1 = Laya.stage.addChild(new Laya.Label);t1.text = "aaaa";t1.color = "#ff0000";let t2 = Laya.stage.addChild(new Laya.Label);t2.text = "bbb";t2.color = "#ff0000";t2.y = 100;t2.disabled = true 步骤二:复制下面代码继续在浏览器控制台执行,可以看到第一个红色...
来源: Laya_社区 发布时间: 20240117
...此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Graphics drawLine(fromX:Numb...
来源: laya_api 发布时间: 20170929
... this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1); } y 如果 y+=this._charSize.height/2; 就是中划线 可以自己加个变量 控制 例如 linethrough 如果是 true的时候 y+=this._charSize.height/2; false 就...
来源: Laya_社区 发布时间: 20171019
...n test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya....
来源: Laya_社区 发布时间: 20191211
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` 这个时候我们就可以看到txt...
来源: Laya2.0_文档 发布时间: 20210715
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/A...
来源: Laya_社区 发布时间: 20171127
...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
... this.label.fontSize = 15; this.label.color = "#7CFC00"; this.label.pos(500, 400); this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000"; ...
来源: Laya_社区 发布时间: 20190514
...oVO(); skillInfoVO.Name = "数据源" + i; skillInfoVO.Lv = i; skillInfoVO.Color = 1; temp.push(skillInfoVO); } list.array = temp;2、SkillInfoVO的相关代码public class SkillInfoVO extends Data { public var Lv:int; public var Name:String; public var Color:int; }3、Data的相关代码public clas...
来源: Laya_社区 发布时间: 20161223
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonke...
来源: Laya_示例 发布时间: 20260303