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

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

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

382. 高级应用-Laya3D与网页混合 [ 67%]

...ode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = "none"; var scene = Laya.stage.addChild(new Laya.Scene()) ; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(...

来源: Laya_示例 发布时间: 20251209

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

384. [LayaAir3]Laya3.3.2编辑器中,使用按钮控制器修改按下状态按钮文字颜色不生效 [ 67%]

...来自: 您好,您可以给Button增加gears齿轮配置(控制title color标题颜色即可),这样的话可以在Button10上直接控制不同button页面的title color。 2025-11-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

385. laya.d3.core.material.PBRSpecularMaterial_API3.0 [ 67%]

...renderQuality Accessors MaterialDefine MaterialProperty _defineDatas albedoColor albedoTexture alphaTest alphaTestValue anisotropy blend blendDst blendDstAlpha blendDstRGB blendEquation blendEquationAlpha blendEquationRGB blendSrc blendSrcAlpha blendSrcRGB cpuMemory cull depthTest depthWrite destroy...

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

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

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

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

389. laya.d3.core.material.PBRMaterial [ 67%]

...剪值。 BaseMaterial blend : int透明混合。BaseMaterial blendConstColor : Vector4混合常量颜色。BaseMaterial blendEquation : int混合方程。BaseMaterial blendEquationAlpha : intAlpha混合方程。BaseMaterial blendEquationRGB : intRGB混合方程。BaseMaterial cull : int渲染...

来源: laya_api 发布时间: 20170929

390. 文本基础样式(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