大约有 1,616 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
...new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.Event.C...
来源: Laya_社区 发布时间: 20181216
...wSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(0, 0, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, ...
来源: Laya_社区 发布时间: 20170711
...t3D,给它添加一个cameraMoveScript脚本组件,然后cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D...
来源: Laya_社区 发布时间: 20180410
..."#FFFFFF"; info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(info); Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); } private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void { info.text = "alpha:" + Math....
来源: Laya2.0_文档 发布时间: 20210714
... //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } ``` **步骤五**:完成代码编写后,用F5快捷键编译并运行结果如下图所示:  图(5) **步骤六**:...
来源: Laya2.0_文档 发布时间: 20210715
...e_xfg/layaScene.ls",Laya.Handler.create(this,function(_s){ Laya.stage.addChild(_s); })); 这样还是报错 说secne是void
来源: Laya_社区 发布时间: 20180802
....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...
来源: Laya2.0_文档 发布时间: 20210715
...Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" f.loadImage(s); f.on(Laya.Event.CLICK, ...
来源: Laya_社区 发布时间: 20180412
... createImg(w,h){ var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/tt.png",w,h); return Img; } /**创建红色滤镜位图方法**/ function creteRedFilter(){ //颜色滤镜矩阵,红色 var colorMatrix = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0,...
来源: Laya_社区 发布时间: 20170811
... init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); ...
来源: Laya_社区 发布时间: 20230419