s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
ResourceLibrary
chevron_left Classes
class
ResourceLibrary

Static Methods

remove_circleGetfunctionsGetAllfunctionsGetThumbnailfunctionsLoadAsyncfunctionsRebuildThumbnailAsyncfunctionsTryGet
ResourceLibrary
Keeps a library of all available Sandbox.Resource.
class Sandbox .
staticsealedabstractSandbox.Engine

functions Static Methods 6

Get (identifier)
obsoleteT
Get a cached resource by its hash.
GetAll ()
IEnumerable`1
Get all cached resources of given type.
GetThumbnail (path, width, height)
Task`1
Render a thumbnail for this resource
LoadAsync (path)
Task`1
Load a resource by its file path. Abstract resource types resolve to the file's concrete type.
RebuildThumbnailAsync (path)
Task`1
Re-render a resource or package thumbnail, update its shared thumb: texture and save it to the local thumbnail cache.
TryGet (filepath, resource)
bool
Try to get a cached resource by its file path.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter