大约有 442 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0055 秒)
Laya_社区(292) Laya2.0_示例(37) Laya_示例(31) Laya2.0_文档(27) Laya2.0_api(18) laya_api(16) Laya3.0_文档(16) Laya3.0_api(5)
...(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我box",owner.name); //从父容器销毁我自己 meshsp.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 staticLayaMonkey.addComponent(MouseScript); layaMonke...
来源: Laya2.0_文档 发布时间: 20210715
... maskSp.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = La...
来源: Laya2.0_示例 发布时间: 20250220
...c class ShurikenParticleRenderInheritanceShurikenParticleRender BaseRender EventDispatcher Object ShurikenParticleRender 类用于创建3D粒子渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By boundingBox : BoundBox[override] [re...
来源: laya_api 发布时间: 20170929
...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADD...
来源: Laya_社区 发布时间: 20151106
....width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, ...
来源: Laya2.0_示例 发布时间: 20250220
...te var ani_planet:MovieClip; private function onBtnClick(e:Event):void { ani_planet = new MovieClip(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_p...
来源: Laya_社区 发布时间: 20180529
..._jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; t...
来源: Laya_社区 发布时间: 20170920
...All Classes | Index | Frames No Frames KeyboardConstants Packagelaya.eventsClasspublic class KeyboardInheritanceKeyboard Object Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Public Constants ConstantDefined By A : int = 65[static] 与 A 键的键...
来源: laya_api 发布时间: 20170929
...All Classes | Index | Frames No Frames KeyboardConstants Packagelaya.eventsClasspublic class KeyboardInheritanceKeyboard Object Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Public Constants ConstantDefined By A : int = 65[static] 与 A 键的键...
来源: Laya2.0_api 发布时间: 20190513
...ll Classes | Index | Frames No Frames ComboBoxProperties | Methods | Events Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox Component Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide I...
来源: laya_api 发布时间: 20170929