Toast Engine
Loading...
Searching...
No Matches
scripting::AssetProxy Class Reference

Public Member Functions

 AssetProxy (toast::UID uid)
 Create from UID.
 AssetProxy (assets::HandleBase handle)
 Create from another handle.
auto path () const -> std::string
auto uid () const -> toast::UID
auto hasValue () const -> bool
auto type () const -> std::string
auto toString () const -> std::string
auto checkType (std::string_view field_type) const -> std::string
auto get (const std::string &name, lua_State *l) const -> luabridge::LuaRef
auto handle () const noexcept -> const assets::HandleBase &
 Curve assets: the value at t, a number for a 1D curve, a vec2 for a 2D one and a vec3 for a 3D one.

The documentation for this class was generated from the following files:
  • engine/src/toast/scripting/asset_proxy.hpp
  • engine/src/toast/scripting/asset_proxy.cpp