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

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

1291. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 50%]

...super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

1292. 高级应用-寻路导航 [ 50%]

...ture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原始资源中包含的...

来源: Laya_示例 发布时间: 20260821

1293. 关于Panel的双指响应问题 [ 50%]

...setup() {         Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();     panel.vScrollBarSkin = "";     panel.hScro...

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

1294. laya.ani.swf.MovieClip [ 50%]

... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(point:Point, ...

来源: laya_api 发布时间: 20170929

1295. laya里的相机镜头 与u3的插件里的不一致, [ 50%]

...: Laya.Scene3D.load("LayaScene_game_scene/Conventional/game_scene.ls",Laya.Handler.create(this,function (scene) {             Laya.stage.addChild(scene); } 我这样导入场景,不new相机,就是在unity运行时什么样LayaBox运行也什么样 如果你在Laya中又重新new了相...

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

1296. this.scene.physicsSimulation.rayCastAll 报错 [ 50%]

...Scene Laya.Scene3D.load('LayaScene_OldHouse/Conventional/OldHouse.ls',Laya.Handler.create(this,this.onComplete)); 的onComplete方法进行赋值的吗?这里赋值的onComplete(scene) 应该是Scene3D 的吧? 努力 • 2019-05-24 21:22 大佬,我将代码上传了,您看一下,谢谢

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

1297. Laya.Video内存泄漏问题 [ 50%]

...频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(...

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

1298. Laya List给子元素添加事件后,滚动事件被劫持了 [ 50%]

...on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { ...

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

1299. List滑动条会引起单元格上的按钮点击后多次触发点击事件 [ 50%]

...0 分享 微博 QZONE 微信 嘿哈 赞同来自: ippon list组件有renderHandler和mouseHandler,两个作用是不一样的,你这个里面用的是renderHandler,相当于每次把条目拉到显示区域都会去执行一下renderHandler里的内容,所以就相当于你只要拖动list...

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

1300. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 50%]

...ne3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform....

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