s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
ResourceId
chevron_left Classes
struct
ResourceId

Properties

data_objectGuiddata_objectIsEmptydata_objectPath

Methods

functionsResolvePath

Static Methods

functionsFromPathfunctionsGet
ResourceId
An identifier of a resource, which can be backed by either a GUID, a path, or both.
struct Sandbox .
sealedSandbox.Engine

data_object Properties 3

Guid
Nullable`1
GUID of the resource, prefer this over path if available.
IsEmpty
bool
Path
string
Path to the resource, used for feedback and as an alternative when the GUID is not provided.

functions Methods 1

ResolvePath ()
string
Resolve the current path by GUID, falling back to the stored path when unavailable.

functions Static Methods 2

FromPath (path)
ResourceId
Capture a path's current GUID, when it is registered with the resource system.
Get (resource)
ResourceId
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