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

大约有 1,108 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)

361. [LayaAir3]反馈一个文本合批的bug [ 67%]

...的文本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

362. laya.display.Graphics [ 67%]

...此对象。 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

363. Text的中划线(删除线) [ 67%]

...         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

364. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 67%]

...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

365. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 67%]

...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

366. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 67%]

...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

367. laya.d3.core.material.Material_API3.0 [ 67%]

...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

368. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 67%]

...       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

369. List数据源的格式问题导致无法响应List的SelectHandler [ 67%]

...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

370. 材质-BlinnPhong材质加载 [ 67%]

...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