大约有 396 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
... Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数...
来源: Laya2.0_api 发布时间: 20190513
...(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.addComponent(Laya.PhysicsCollider); var Rig=box.addComponent(Laya.Rigidbody3D); Rig.colliderShape=new Laya.BoxColliderShape(1,1,1); Rig.isTrigger=true; box.transform.translate(new Laya.Vector3(0, 2, 0), false); box.addComponent(BoxM...
来源: Laya_社区 发布时间: 20190314
...CTIONAL SHADERDEFINE_RECEIVE_SHADOW Accessors active activeInHierarchy components depth destroyed displayedInStage hideFlags id is3D layer meshFilter meshRenderer minX minZ numChildren parent scene timer transform url width Methods _initialize _processActive addChild addChildAt addChildren addCompon...
来源: Laya3.0_api 发布时间: 20231102
...何吓吓 赞同来自: 你是1.0还是2.0的,2.0的是自动更新,在onEnable()方法里面,如果是1.0你应该在打开dialog之前更新呐 2018-12-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 X. 相关问题 请...
来源: Laya_社区 发布时间: 20181221
...以上的版本编译实例项目,这里用的2.3版本,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = t...
来源: Laya_社区 发布时间: 20191215
...ir.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&...
来源: Laya2.0_文档 发布时间: 20210715
...ics.jointClasspublic class PulleyJointInheritancePulleyJoint JointBase Component Object 滑轮关节:它将两个物体接地(ground)并彼此连接,当一个物体上升,另一个物体就会下降 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDe...
来源: Laya2.0_api 发布时间: 20190513
...承自Laya.Sprite3D。使用Laya.Sprite3D.instantiate实例化,并addComponent自定义的类;添加到场景中,再移除;移除时发现脚本的onDisable调用了两次。断点调试后发现如下图的代码:首先在1的方法中调用_inActiveHierachy和inActiveScripts;然后在2...
来源: Laya_社区 发布时间: 20200623
...jointClasspublic class DistanceJointInheritanceDistanceJoint JointBase Component Object 距离关节:两个物体上面各自有一点,两点之间的距离固定不变 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By collideConnected : B...
来源: Laya2.0_api 发布时间: 20190513
...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer meshFilter meshRenderer numChildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstan...
来源: Laya3.0_api 发布时间: 20231115