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

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

191. 引擎基础概念 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...中的所有对象的基类,2D的基础精灵Sprite与3D的基础精灵Sprite3D都继承于Node,不仅于此,所有继承于Node的子类或孙类,也可称为节点,例如:Sprite节点,Image节点。 只有继承于Node的子类或孙类的节点对象,才可以添加子节点对象...

来源: Laya3.0_文档 发布时间: 20240910

192. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 84%]

...ne3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTe...

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

193. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 84%]

...nable: boolean; protected _enable: boolean; protected _owner: laya.d3.core.Sprite3D; /**是否已执行start函数。*/ started: boolean; /** * 获取唯一标识ID。 * @return 唯一标识ID。 */ id: number; /** * 获取所属Sprite3D节点。 * @return 所属Sprite3D节点。 */ owner: laya.d3.c...

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

194. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 84%]

...好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的...

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

195. laya.d3.core.Camera [ 83%]

...s Packagelaya.d3.coreClasspublic class CameraInheritanceCamera BaseCamera Sprite3D Node EventDispatcher Object Camera 类用于创建摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Nod...

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

196. TypeError: Cannot read property '_addRenderObject' of undefined [ 83%]

... Cannot read property '_addRenderObject' of undefined preload.js:55 at MeshSprite3D._onActive (file:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.d3.js:5617:17)   at MeshSprite3D._activeHierarchy (file:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.core.js:12325:18)   at Sprite3D._activeHierarchy (file:/...

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

197. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

...E中使用 2.1 添加组件 在LayaAir-IDE的层级面板中,添加一个Sprite3D节点,如图2-1所示, (图2-1) 然后在节点的属性上增加一个3D UI组件,如动图2-2所示,在属性面板中,点击添加组件,选择渲染->3D UI组件。 (动图2-2) 2.2 属性...

来源: Laya3.0_文档 发布时间: 20250214

198. HIERARCHY_LOADED函数不回调 [ 83%]

...不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.trans...

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

199. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 83%]

...目标物体添加上描边 */     public AddCommandBuffet_Outline(sprite3D : Laya.Sprite3D): void{         if((sprite3D as Laya.MeshSprite3D) == null || !this.isUseOuline){            // console.log('spreite3D node meshSprite3D is null');           ...

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

200. 粒子特效,播放与克隆有bug [ 83%]

...隆有bug  2.1.0和2.1.1,Main Camera的clearFlag =3可以播放,但是Sprite3D克隆报错,.ls和.lh都会报错。 2.2以上的版本Main Camera的clearFlag =3无法播放,clearFlag =1或0,播放时有黑背景,克隆没有尝试。 附件 : --> LayaScene_zhadan.rar 2019-11-26 添加...

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