Interface Asset

All Superinterfaces:
Destructible
All Known Subinterfaces:
TextureBase
All Known Implementing Classes:
AudioSource, Font, Image, Shader, StyleSheet, Texture, TextureArrayLayer

public interface Asset extends Destructible
Represents a type of asset, like images, audio or text.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes this asset from the asset pool and deletes it.
    Returns the path to the file this asset was loaded from.
  • Method Details

    • getPath

      String getPath()
      Returns the path to the file this asset was loaded from.
      Returns:
      The path of this asset.
    • destroy

      void destroy()
      Removes this asset from the asset pool and deletes it.
      Specified by:
      destroy in interface Destructible