大约有 1,200 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(628) Laya3.0_api(207) Laya2.0_文档(119) Laya_示例(59) Laya3.0_文档(56) laya_api(46) Laya2.0_api(44) Laya2.0_示例(41)
....init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中 白色的hello_world。 接着我们给我们的文本添加一些其他的字体样式...
来源: Laya2.0_文档 发布时间: 20210714
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.showShakePic(); this.showConsoleText(); this.startShake(); } showShakePic() { const Sprite = Laya.Sprite; let shakePic = new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChi...
来源: Laya2.0_示例 发布时间: 20251209
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createTexts(); })(); function createTexts() { var t1 = createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2 = createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); t3....
来源: Laya_示例 发布时间: 20251209
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; connect(); showLogger(); })(); function connect() { hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, t...
来源: Laya_示例 发布时间: 20251209
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; connect(); showLogger(); })(); function connect() { hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, t...
来源: Laya_示例 发布时间: 20251209
...一个,用graphics绘制一个红色的圆,在着色器下,写上if(color.r>0.98)color.a=0.0; 可能出现的问题是,第一在添加graphics后,直接给出警告,图片消失,第二种情况,例如A是黑色矩形,B是红色圆,圆完全在A的区域内,设置着色器,...
来源: Laya_社区 发布时间: 20250725
...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_示例 发布时间: 20251209
...// 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算...
来源: Laya2.0_文档 发布时间: 20210715
...png" border="0" width="47" height="20" /></span> <span style='color:#dbd4bb;font-size:undefined'><font color='#e9a118'>简单雅洁:</font><font>***</font></span>" 电脑的谷歌浏览器移动端 附件 : --> 2020-07-15 1 条评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20200715
...中用到了自定义格式的模型文件 .... if(this.m_spModelData.HasColor()) { VerElement[Index] = new Laya.VertexElement(Stride, Laya.VertexElementFormat.Color, Laya.VertexElementUsage.COLOR0); Stride += 16; Index += 1; } var VertDecal = new Laya.VertexDeclaration(Stride, VerElement); NewMesh....
来源: Laya_社区 发布时间: 20180717