大约有 821 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0064 秒)
Laya_社区(448) Laya3.0_api(77) laya_api(70) Laya2.0_api(64) Laya2.0_文档(50) Laya2.0_示例(39) Laya_示例(37) Laya3.0_文档(36)
...按钮 btn.graphics.drawRect(0,0,150,30,'#FF0000'); btn.pos(10,430); btn.size(150,30);//sprite如果要触发鼠标事件,务必设置好size,也就是鼠标的相应区域 btn.on(Event.CLICK,this,onChangeSkin); Laya.stage.addChild(btn); var text:Text=new Text(); text.text='切换皮肤'; text.f...
来源: Laya_社区 发布时间: 20170324
...on = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时...
来源: Laya_示例 发布时间: 20241118
...dChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches ...
来源: Laya2.0_示例 发布时间: 20241118
...lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); this.addChild(this._lb); // this._img = new Image(); // this._img.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); // this.addChild(this._img); } public set dataSourc...
来源: Laya_社区 发布时间: 20180410
....addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK, this, this....
来源: Laya2.0_示例 发布时间: 20241118
...算Obb包围盒变换到另一Obb包围盒的矩阵 OrientedBoundBox getSize(out:Vector3):void 该包围盒需要考虑的尺寸 OrientedBoundBox getSizeSquared(out:Vector3):void 该包围盒需要考虑尺寸的平方 OrientedBoundBox intersectsRay(ray:Ray, out:Vector3):Number 该包围盒...
来源: laya_api 发布时间: 20170929
...oat32ArrayDataTexture2D simLodRect : Uint32Array[static] DataTexture2D size : Size[read-only] 获取尺寸。 BaseTexture source : *[read-only] 获取纹理资源。 BaseTexture src : String[read-only] 获取文件路径全名。 DataTexture2D width : int[read-only] 获取宽度。 BaseText...
来源: laya_api 发布时间: 20170929
...ring): TextInput { var ti: TextInput = new TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return ti; } } } new laya.UI_Input();package { import laya.display.Stage; import la...
来源: Laya_示例 发布时间: 20241118
...ring): TextInput { var ti: TextInput = new TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return ti; } } } new laya.UI_Input();package { import laya.display.Stage; import la...
来源: Laya2.0_示例 发布时间: 20241118
... Laya.stage.addChild(this.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn....
来源: Laya2.0_示例 发布时间: 20241118