Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
godot::PixelpartEffectResource Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ get_data()

PackedByteArray godot::PixelpartEffectResource::get_data ( ) const

Return the effect data.

Returns
Byte array of the effect data

◆ import()

void godot::PixelpartEffectResource::import ( String filepath)

Import data from a ppfx file.

Parameters
filepathFile to import

◆ load()

void godot::PixelpartEffectResource::load ( )

Load the imported effect data.

The effect data needs to be imported with import(String filepath) before calling this method.

◆ set_data()

void godot::PixelpartEffectResource::set_data ( PackedByteArray bytes)

Set the effect data manually.

Parameters
bytesEffect data as byte array

The documentation for this class was generated from the following files: