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

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

1821. js怎么主动调用AS定义的静态变量? [ 67%]

...叠 要回复问题请先登录 发起人 vincent 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的...

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

1822. 3D项目, 骨骼下放入一个空节点容器GameObject导出的问题,, [ 67%]

...是什么问题呢,,是我设置的错了吗? 直接调用 var box = new Laya.MeshSprite3D(new Laya.BoxMesh(1,1,1)); //将3D对象加载到scene中(一定要加入到场景) Scene3DManager.getInstance().nowScene.addChild( box ); this._ani.linkSprite3DToAvatarNode("RHand",box); linkSprite3D...

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

1823. laya.d3.math.Rand_API3.0 [ 67%]

...ignedFloat getUint getByteFromInt getFloatFromInt Constructors constructor new Rand(seed: number): Rand Defined in laya/d3/math/Rand.ts:48 创建一个 Rand 实例。 Parameters seed: number 32位无符号整型随机种子。 Returns Rand Properties seeds seeds: Uint32Array = new Uint32Array(4) Def...

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

1824. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 67%]

....onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new Laya.Handler(this,this.onSelecte); } /**根据选择tab的索引切换页...

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

1825. 使用外部引擎播放layaair制作的.ani [ 67%]

..., onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-...

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

1826. replaceSlotSkinName对于spine换肤不成功 [ 67%]

....Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { c...

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

1827. as怎么用protobytebuf传输数据到服务端 [ 67%]

...链接 提交 1 个回复 Laya_XS 赞同来自: var userLogin:MsgLogin = new MsgLogin(); userLogin.msgType = MSG_TYPE.USERLOGIN; userLogin.msgSize = MSG_SIZE; userLogin.uid = Login.instance.g_userInfo.uid; userLogin.token = Login.instance.g_userInfo.token; var msgByteArray:WritingBuffer = new Writin...

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

1828. 性能测试-骨骼 [ 67%]

...etRes(mTexturePath); let arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } parseComplete() { const Event = Laya.Event; for (let i = 0; i = tAnimNum) { mActionIndex = 0; } for (let i...

来源: Laya2.0_示例 发布时间: 20260303

1829. Laya下的图片上传示例(完整版) [ 67%]

....document.body.appendChild(file);//添加到页面; var fileReader:any = new Laya.Browser.window.FileReader(); file.onchange = function(e:any):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.f...

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

1830. 官方视频教程中飞机大战 "this.addChild is not a function" [ 67%]

...unction(_super){ function BackGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite);报错 "TypeError: this.addChild is not a function    at...

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