大约有 1,616 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0065 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
...x.x = Laya.Browser.width; gamebox.visible = true; Laya.stage.addChild(gamebox); // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,); Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed)) Tween.to(gamebox,{x:0},1000); console...
来源: Laya_社区 发布时间: 20170104
...s._arrCheck[3] = true; } break; } sp_icon.pos(input.width + 10, -8); input.addChild(sp_icon); } /** * 占位符处理 * @param input TextInput */ private _setPlaceHolder(input: Laya.TextInput) { switch (input.name) { case "input_nickname": // input.changeText("限6个中文以内"); input.prompt = "...
来源: Laya_社区 发布时间: 20200410
...ordWrap x y zOrder Methods _initialize _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater changeText clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce ...
来源: Laya3.0_api 发布时间: 20231115
... new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ffff00"); Laya.stage.addChild(sp); sp.x = 50; trace(sp.x); // 输出50 sp.cacheAs = "bitmap"; sp.staticCache = true; sp.x = 100; trace(sp.x); // 输出100,且编译出来的效果也是在这个位置,说明staticCache = true无效 2017-11...
来源: Laya_社区 发布时间: 20171120
...nerHTML="<img src='res/atlas/test.png'/>" Laya.stage.addChild(div); } TypeError: Illegal constructor laya.core.js:11687 at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24) at Function.getInstance (file:///D:/work/test2/bin/libs/lay...
来源: Laya_社区 发布时间: 20190926
...Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", ...
来源: Laya_社区 发布时间: 20180224
...版。 ```javascript var txt=new Laya.Text(); txt.text="text"; Laya.stage.addChild(txt); //后面只是更新文字内容,使用changeText能提高性能 txt.changeText("text changed."); ``` Text.changeText会直接修改绘图指令中该文本绘制的最后一条指令,这种前面的绘图...
来源: Laya2.0_文档 发布时间: 20210714
...ht test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.text); </script> 2017-03-02 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kdsrpg 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新...
来源: Laya_社区 发布时间: 20170302
...h x y zOrder _updateMark Methods _initialize _processActive _setCullCamera addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...
来源: Laya3.0_api 发布时间: 20231115
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010