大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0294 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { data = { "minStartColor": { "0": 1, "1": 0, "2": 0, "3": 1 }, "boxEmitterVelocity": { "0": 0, "1": 0, "2": 0 }, "minHorizontalStartRadian": ...
来源: Laya_社区 发布时间: 20180109
... } Laya.loader.create(sceneUrl,new Laya.Handler(this,completeFunc)); 附件 : --> scene1.zip 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20191012
...n // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相关问题 求指点3d射线碰...
来源: Laya_社区 发布时间: 20170316
...算器步进时长 var timeStep:Object=1.0 / 60.0; box.timer.loop(1000/60,this,cannonUpdate); } private function cannonUpdate():void{ // 循环步进驱动解算 world.step(1.0 / 60.0); if(box.timer.currFrame %500 == 0){ sphereBody.velocity = new CANNON.Vec3(0,0,20) as Object; } box.transform.transl...
来源: Laya_社区 发布时间: 20170331
...und1,ground2,ground3,ground4]); Laya.timer.loop(1000, this, add_F); } private function add_F():void { var rockOptions:Object = { stiffness: 1, friction: 1, ...
来源: Laya_社区 发布时间: 20170822
...ra.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial()...
来源: Laya_示例 发布时间: 20251219
...phics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private ...
来源: Laya_社区 发布时间: 20170918
...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` (图1)
来源: Laya2.0_文档 发布时间: 20210714
...所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.si...
来源: Laya2.0_文档 发布时间: 20210715
....TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new Gam...
来源: Laya_社区 发布时间: 20190212