大约有 1,608 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0056 秒)
Laya_社区(977) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...wordWrap = true; text.valign = "middle"; text.align = "center"; Laya.stage.addChild(text); } } new Timer_CallLater();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持...
来源: Laya2.0_示例 发布时间: 20241117
...- ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(ape); } function applayFilter(ape) { var blurFilter = new BlurFilter(); blurFilter.strength = 5; ape.filters = [blurFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.St...
来源: Laya_示例 发布时间: 20241117
...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; Laya.timer.frameLoop(1, this, animate); } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleVal...
来源: Laya_示例 发布时间: 20241117
...Handler = new Handler(this, this.onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker); this.onChangeColor(colorPicker); } onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorP...
来源: Laya2.0_示例 发布时间: 20241117
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); if(false) { eval(23) } console.log(wx.request) //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transfor...
来源: Laya_社区 发布时间: 20180104
...age.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - counter.width) / 2 - 35; counter.y = (Laya.stage.height ...
来源: Laya2.0_文档 发布时间: 20210715
...8"; this.showApe(); } showApe() { this.ape = new Laya.Sprite(); Laya.stage.addChild(this.ape); this.ape.loadImage("res/apes/monkey2.png"); this.ape.pivot(55, 72); // this.ape.pos( Laya.stage.width / 2, Laya.stage.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; thi...
来源: Laya2.0_示例 发布时间: 20241117
...drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene); var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word..."; ...
来源: Laya_社区 发布时间: 20200223
... { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界信...
来源: Laya2.0_示例 发布时间: 20241117
...adFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5));...
来源: Laya_社区 发布时间: 20191209