s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
ResourceLibrary
chevron_left
Classes
class
ResourceLibrary
Static Methods
remove_circle
Get
functions
GetAll
functions
GetThumbnail
functions
LoadAsync
functions
RebuildThumbnailAsync
functions
TryGet
ResourceLibrary
Keeps a library of all available Sandbox.Resource.
class
Sandbox
.
static
sealed
abstract
Sandbox.Engine
functions
Static Methods
6
Get
(
identifier
)
obsolete
T
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.