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

大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)

1381. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 48%]

...板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderSha...

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

1382. 请问UI之间的场景切换要怎么写 [ 48%]

...Mode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign)...

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

1383. 加载lh模型后,添加Laya.SkinAnimations组件就报错 [ 48%]

...显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Animation 的createFrames 使用已经加载的图集缓存动画失败 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么给Sprite容器添加点击事件没...

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

1384. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 48%]

...temRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._...

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

1385. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 48%]

...e(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer ...

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

1386. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 48%]

...gin.atlas", type: Laya.Loader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){ console.log("回调")}));   这样用Laya.loader.load加载在微信web开发者工具触发不了回调,资源的url都是有资源的, Laya.URL.basePath的路径也是对的   laya sdk 是1.7....

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

1387. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 48%]

...t partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {         // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源       ...

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

1388. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 48%]

...使用。   export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; this.title = ...

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

1389. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 48%]

...e3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall与三角...

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

1390. putimagedata 不起作用 [ 48%]

...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); data = Laya.Browser.context.getImageData(...

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