大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0162 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...叠 要回复问题请先登录 发起人 vincent 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的...
来源: Laya_社区 发布时间: 20170321
...是什么问题呢,,是我设置的错了吗? 直接调用 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
...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
....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
..., 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
....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
...链接 提交 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
...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
....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
...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