大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...escript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时已经拿...
来源: Laya2.0_文档 发布时间: 20210715
...ass GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:L...
来源: Laya_社区 发布时间: 20170327
...,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数...
来源: Laya_社区 发布时间: 20171011
...aya.BlinnPhongMaterial", "path":"Resources/unity_builtin_extra.lmat" } ] }, "components":{ "Rigidbody":{}, ...
来源: Laya_社区 发布时间: 20180122
...mo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100...
来源: Laya_社区 发布时间: 20170719
...loveControl.startGame(); //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset); let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { ...
来源: Laya_社区 发布时间: 20190704
... • 2018-07-16 12:47 你说得对,打包过程资源路径我写到\bin\res了,改过来就完全没问题了,也不需要注释掉checkApkUpdate函数。太感谢了!赏金怎么确认给你? alex • 2018-07-16 12:52 我追问一下,电信的工作人员给我的反馈是已经解决...
来源: Laya_社区 发布时间: 20180714
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/PrefabImpl" PrefabImpl Class PrefabImpl 预制体导入 Hierarchy Prefab PrefabImpl Index Constructors constructor Properties _id api data destroyedImmediately lock name url uuid version DEBUG Accessors cpuMemory dep...
来源: Laya3.0_api 发布时间: 20231115
... () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBirdSing.pi...
来源: Laya_社区 发布时间: 20171026
...//程序入口 Laya.init(600, 400, WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoad...
来源: Laya_社区 发布时间: 20180529