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

大约有 443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

301. 在UI类里调用启动类的静态函数失败了 [ 51%]

...?   /**Created by the LayaAirIDE*/ module view { export class GameInfo extends ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KE...

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

302. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 51%]

...uot;); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。

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

303. 导航容器组件 · LayaAir3.0文档 · LAYABOX [ 51%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

来源: Laya3.0_文档 发布时间: 20231024

304. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 51%]

...为加载代码,请问这样使用是否正确:     class ShuiPao extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh....

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

305. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 51%]

... flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=nu...

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

306. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 51%]

...ort laya.d3.core.Sprite3D; import laya.d3.math.Vector3; class MonkeyScript extends Script3D { private var rotation:Vector3 = new Vector3(0, 0.03, 0); override public function onAwake():void { trace("onAwake"); } override public function onStart():void { trace("onStart"); } override public function o...

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

307. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 51%]

...分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: L...

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

308. 提示资源重复加载 [ 51%]

...let swimpoorpath02="Comp/yard_swimpool02.png";  export default class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLo...

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

309. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 51%]

...现打字效果等  /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ ...

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

310. VBOX动态增加的元素没有自动布局 [ 51%]

...andler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里为什么获取不到子node呢?打印...

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