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

大约有 314 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0065 秒)

261. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 49%]

...x.x = Laya.Browser.width;     gamebox.visible = true;     Laya.stage.addChild(gamebox);     // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,);     Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed))     Tween.to(gamebox,{x:0},1000);     console...

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

262. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 49%]

...景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”...

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

263. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 48%]

...ll, false)); this.scene3d = Loader.getRes(sceneUrl) as Scene3D; Laya.stage.addChild(this.scene3d); 189*****909 • 2020-07-04 10:57 @熊猫大侠:需要释放掉,然后再次载入。 189*****909 • 2020-07-04 10:59 @熊猫大侠:考虑到资源量很大,需要从内存清理掉。不然累计...

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

264. laya.d3.core.Sprite3D [ 47%]

...t = null, constructParams:Array = null):Sprite3D[static] private Sprite3D addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513

265. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 45%]

...ge.height = videoTexture.video.videoHeight; image.pos(100,100); Laya.stage.addChild(image); //目前LayaAir2.0引擎暂时没有提供刷新纹理机制,需要手动刷新。或者你可以试用LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this....

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

266. laya.d3.core.Sprite3D_API3.0 [ 45%]

...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

来源: Laya3.0_api 发布时间: 20231115

267. viewportPointToRay产生的射线始终有偏差,是为什么? [ 45%]

...1754, 0.7341046333312988); let scene: Laya.Scene = new Laya.Scene(); scene.addChild(camera); scene.addScript(SceneScript); Laya.stage.addChild(scene); } } new GameMain(); g02test.zip 2018-02-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 自己new的摄像机和射线检测误差没有关系 ...

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

268. laya.d3.core.BaseCamera [ 44%]

...d 更新 Sprite3D  addAllLayers():void 增加所有图层。 BaseCamera addChild(node:Node):Node[override] 添加子节点。 Sprite3D addChildAt(node:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Sprite3D addChildren(... args):void 批量增加子节点 Node addCo...

来源: laya_api 发布时间: 20170929

269. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 43%]

...IndexInReflectionList _initialize _processActive _setIndexInReflectionList addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCom...

来源: Laya3.0_api 发布时间: 20231102

270. laya.display.Animation_API3.0 [ 42%]

...时间,单位:毫秒。 animation.play();//播放动画。 Laya.stage.addChild(animation);//将 animation 对象添加到显示列表。 } } } example Animation_Example(); function Animation_Example(){ Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef...

来源: Laya3.0_api 发布时间: 20231115