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

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

301. laya.ui.Image_API3.0 [ 73%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,...

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

302. laya.ui.Label_API3.0 [ 73%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var label: Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 la...

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

303. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 73%]

....bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); //按钮标签字体大小 com...

来源: Laya2.0_文档 发布时间: 20210714

304. 分包项目, 加载js时报错 [ 73%]

...为黑色             txt.color = '#ffffff';             this.addChild(txt);                          var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addCh...

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

305. laya.display.AnimationBase_API3.0 [ 73%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

306. 关于event中只读属性touches,问题,求解 [ 73%]

...height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白touches...

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

307. laya.display.FrameAnimation_API3.0 [ 73%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

308. laya.spine.SpineSkeleton_API3.0 [ 73%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

309. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 73%]

...;  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void  {  info.text =   "alpha:" + Math.floor(rotationInfo.alpha) + '\n' +  "beta :" + Math.f...

来源: Laya2.0_文档 发布时间: 20210714

310. [LayaAir 1.0]怎么给动态添加的组件 添加附加脚本 [ 72%]

...1.0]怎么给动态添加的组件 添加附加脚本 我在代码中用  this.image = new Laya.Image(); 添加的图片组件,怎么给this.image添加附加脚本, 官网的文档上只是介绍了在UI界面把脚本文件直接拖动到组件上,但是用代码动态添加的组件就...

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