大约有 3,979 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...this.kwxSocket.OnMessageCallBack=function(msg){ console.log("回调"+msg); var dataTemp = JSON.parse(msg); console.log(dataTemp.d); kwxGame.prototype.cardData = dataTemp.d; [b][i]Laya.timer.once(1000, this, this.onOncePiao); [/i][/b] } }在定时器中需要调用外部_proto上的函数,这里的...
来源: Laya_社区 发布时间: 20170419
...片地图对象层支持动态添加对象吗 我添加了 死活不显示 var layer = tiledMap.getLayerByName("rock"); var gids = layer.getDrawSprite(5,5); var coinS = new coin(); gids.addChild(coinS); gids.x = 200; gids.y = 100; layer.addChild(gids) 还是说 我的思路本来就是错的?那...
来源: Laya_社区 发布时间: 20171008
动态加载的图片不响应按钮点击事件 var imgURL:URLRequest = new URLRequest(); imgURL.url="res/data/image/522.png"; var imgLoader:Loader = new Loader(); imgLoader.load(imgURL); imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finished); function finished(evt:Event):void { va...
来源: Laya_社区 发布时间: 20170321
...网格渲染器获取模型上的材质 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //从场景获取球型精灵 sphere = scene.getChildByName("Sphere") as MeshSprite3D; //获...
来源: Laya2.0_文档 发布时间: 20210715
... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWi...
来源: Laya_社区 发布时间: 20240305
Laya.Byte使用getUint16读取错误 var bytes1 = new Laya.Byte([0,8]); console.log('++',bytes1.getUint8(),bytes1.getUint8()); var bytes2 = new Laya.Byte([0,8]); console.log('++',bytes2.getUint16()); var bytes3 = new Laya.Byte([0,8,0,0]); console.log('++',bytes3.getUint32()); 采用上面测试...
来源: Laya_社区 发布时间: 20180625
...到的天空盒有黑块. 在web和微信模拟器上都是正常的 var sceneUrl:string = "scene1/Conventional/scene_battle.ls"; var completeFunc = (scene)=>{ var sc = Laya.loader.getRes(sceneUrl); Laya.stage.addChild(sc); ...
来源: Laya_社区 发布时间: 20191012
...ani1,empty animation created 图片数据应该没有问题 代码: var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}]; Laya.loader.load(ress); var Animation = Laya.Animation; ...
来源: Laya_社区 发布时间: 20170105
...port 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=null):void { urlLoader=new ...
来源: Laya_社区 发布时间: 20151228
...,".png")); }else { var bFont=new BitmapFont(); bFont.parseFont(this._data,new Texture(data)); var tArr=this._url.split(".fnt")[0].split("/"); var fo...
来源: Laya_社区 发布时间: 20190402