32 Star 227 Fork 40

GVPI++俱乐部/Dora-SSR

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Visual.mdx 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Li Jin 提交于 2025-01-06 16:24 +08:00 . Fixed doc site prismjs language adding. [skip CI]
# Visual
**Description:**
  A class to represent a visual effect object like Particle, Frame Animation or just a Sprite.
**Class Object:** [Platformer.Visual Class](/docs/api/Class%20Object/Platformer/Visual).
**Inherits from:** [Node](/docs/api/Class/Node).
## playing
**Type:** Readonly Field.
**Description:**
  Whether the visual effect is currently playing or not.
**Signature:**
```tl
const playing: boolean
```
## start
**Type:** Function.
**Description:**
  Starts playing the visual effect.
**Signature:**
```tl
start: function(self: Visual)
```
## stop
**Type:** Function.
**Description:**
  Stops playing the visual effect.
**Signature:**
```tl
stop: function(self: Visual)
```
## autoRemove
**Type:** Function.
**Description:**
  Automatically removes the visual effect from the game world when it finishes playing.
**Signature:**
```tl
autoRemove: function(self: Visual): Visual
```
**Returns:**
| Return Type | Description |
| --- | --- |
| Visual | The same "Visual" object that was passed in as a parameter. |
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ippclub/Dora-SSR.git
git@gitee.com:ippclub/Dora-SSR.git
ippclub
Dora-SSR
Dora-SSR
main

搜索帮助