大约有 973 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidBody: RigidBody Inherited from ColliderBase.rigidBody Defined in laya/physics/ColliderBase.ts:27 [只读]刚体引用 Optional runInEditor runInEditor: boolean Inherited from Component...
来源: Laya3.0_api 发布时间: 20231115
...一个全局离线画布,不会加到DOM上,主要用来测量字体、获取image数据。 主画布 同样在初始化中还创建了渲染器Render,它是一个管理渲染的单例。 2.渲染结构 Rander 来看Rander的构造函数发现,游戏渲染的主循环是通过window.reque...
来源: Laya_社区 发布时间: 20200925
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidBody: RigidBody Inherited from ColliderBase.rigidBody Defined in laya/physics/ColliderBase.ts:27 [只读]刚体引用 Optional runInEditor runInEditor: boolean Inherited from Component...
来源: Laya3.0_api 发布时间: 20231115
...件会自动刷新,无需代码。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //修改节点属性,场景里的对象会自动同步,无需手动 node.props.x = 100; //修改组件属性,场景里的对象会自动同步,无需手...
来源: Laya3.0_文档 发布时间: 20251010
...截屏分享 分享一个TS版本的3D2D结合的单机斗地主Demo 如何获取一个3D模型的长宽高? 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 问题状态 最新活动: 2019-12-18 16:45 ...
来源: Laya_社区 发布时间: 20190923
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidBody: RigidBody Inherited from ColliderBase.rigidBody Defined in laya/physics/ColliderBase.ts:27 [只读]刚体引用 Optional runInEditor runInEditor: boolean Inherited from Component...
来源: Laya3.0_api 发布时间: 20231115
...戏后台使用富文本编辑器插件来更新游戏的公告,前端会获取这个公告的html并赋值给HTMLDivElement进行展示 在laya1.0没有问题,在laya2.0就有问题: 1.<br />标签不能在<p>或者<span>里使用,但可以在<div>里使用,例子d...
来源: Laya_社区 发布时间: 20190815
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidBody: RigidBody Inherited from ColliderBase.rigidBody Defined in laya/physics/ColliderBase.ts:27 [只读]刚体引用 Optional runInEditor runInEditor: boolean Inherited from Component...
来源: Laya3.0_api 发布时间: 20231115
...ze、Color、下划线3.2 同一个文本中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leadin...
来源: Laya3.0_文档 发布时间: 20230303
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 repeat repeat: number = 0 Defined in laya/effect/EffectBase.ts:15 重复次数,默认为播放一次 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/c...
来源: Laya3.0_api 发布时间: 20231115