大约有 281 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
为什么导入脚本没有此模块 导入 import CameraMoveScript from "./common/CameraMoveScript";脚本显示没有此模块 附件 : --> 2020-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么...
来源: Laya_社区 发布时间: 20200226
...etComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Component Parameters componentType: {} 组建类型 Returns T 返回组件 getComponents getComponents(componentType: typeof Component): Component[] Inherited from Node.getComponents ...
来源: Laya3.0_api 发布时间: 20231115
...设置为自动播放,仍会从第0帧开始播放,与索引的设置没有关系。 2.7 脚本控制Animation 在Scene2D的属性设置面板中,增加一个自定义的组件脚本,命名为“Animation.ts”。然后,按照动图2-15,将Animation节点拖入到“Animation.ts”暴露...
来源: Laya3.0_文档 发布时间: 20251010
...etComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Component Parameters componentType: {} 组建类型 Returns T 返回组件 getComponents getComponents(componentType: typeof Component): Component[] Inherited from Node.getComponents ...
来源: Laya3.0_api 发布时间: 20231115
...) 1. Scene.open 我们使用这个打开常见会传递参数, beta4中, 没有将params传递到onOpened响应函数中 下面是临时补救的shim if (Laya.LayaEnv.version == "3.3.0-beta.4") { Scene.open = function (url: string, closeOther?: boolean, param?: any, complete?: any, progress?: any)...
来源: Laya_社区 发布时间: 20250609
...下: (动图1-8) 这个示例说明,滚动与隐藏不同,它并没有把超出文本框的文字进行裁剪。 2. 代码创建Text 有时,不想让Text节点一开始就在舞台上,而是在要用的时候才添加,这就要通过代码来创建了。在Scene2D的属性设置面...
来源: Laya3.0_文档 发布时间: 20251010
...etComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Component Parameters componentType: {} 组建类型 Returns T 返回组件 getComponents getComponents(componentType: typeof Component): Component[] Inherited from Node.getComponents ...
来源: Laya3.0_api 发布时间: 20231115
...本 DotDestroyOnLoad laya2.0开始支持Laya.Script脚本组件,请问有没有常驻脚本的写法呢?类似unity的dontDestroyOnLoad 2019-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20190125
...etComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Component Parameters componentType: {} 组建类型 Returns T 返回组件 getComponents getComponents(componentType: typeof Component): Component[] Inherited from Node.getComponents ...
来源: Laya3.0_api 发布时间: 20231115
...动图2-4: (动图2-4) 由于此时的精灵只是一个空节点,没有显示对象,因此 Visible 和 Alpha 的调整是没有任何显示变化的,我们先来看看几个常用的基础属性: 2.2.1 位置Position 精灵的位置说的是精灵锚点/轴心点所处画布的位置...
来源: Laya3.0_文档 发布时间: 20251010