大约有 2,541 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1918) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...Container.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya.Event.CLICK, this, this.nextStep); // 引导所在容器 guideContainer = new Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea =...
来源: Laya2.0_示例 发布时间: 20251223
...ds Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By dummy : AnimationTransform3D 取关联虚拟变换。 Transform3D forward : Vector3[read-only] 获取向前方向。 Tr...
来源: laya_api 发布时间: 20170929
...de> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; protected _enab...
来源: Laya_社区 发布时间: 20171109
...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示...
来源: Laya2.0_文档 发布时间: 20210715
...3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene...
来源: Laya2.0_文档 发布时间: 20210715
...焦点时执行回调,发送数据 onAwake(): void { this.owner.on(Laya.Event.BLUR, this, this.sendData) } //将玩家数据上传至云端 sendData() { //组织数据 let KVDataList = []; let text = Number(this.owner.text); if(!isNaN(text) && text >= 0 && text <= 9999) { thi...
来源: Laya3.0_文档 发布时间: 20251010
... void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration...
来源: Laya3.0_文档 发布时间: 20251010
...dChild(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var ...
来源: Laya_社区 发布时间: 20170525
...k.layabox.com/'>LayaBox欢迎你的加入!</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:H...
来源: Laya3.0_文档 发布时间: 20230303
...dChild(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var ...
来源: Laya_社区 发布时间: 20170525