![]() |
Pixelpart 1.8.2
Godot Plugin
|
Resource for a Pixelpart effect that is contained in a ppfx file. More...
Public Member Functions | |
void | import (String filepath) |
Import data from a ppfx file. | |
void | load () |
Load the imported effect data. | |
void | release () |
Release the loaded effect. | |
void | set_data (PackedByteArray bytes) |
Set the effect data manually. | |
PackedByteArray | get_data () const |
Return the effect data. | |
Public Attributes | |
PackedByteArray | data |
Effect data as byte array. | |
Resource for a Pixelpart effect that is contained in a ppfx file.
This class is derived from the Godot Resource
class and stores the effect as a byte array.
PackedByteArray godot::PixelpartEffectResource::get_data | ( | ) | const |
Return the effect data.
void godot::PixelpartEffectResource::import | ( | String | filepath | ) |
Import data from a ppfx file.
filepath | File to import |
void godot::PixelpartEffectResource::load | ( | ) |
Load the imported effect data.
The effect data needs to be imported with import(String filepath) before calling this method.
void godot::PixelpartEffectResource::set_data | ( | PackedByteArray | bytes | ) |
Set the effect data manually.
bytes | Effect data as byte array |