Open Class Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
godotClassName
ResourceUID.swift:23override class var godotClassName: StringName { get }
Overrides
Other members in extension
Type members
static let invalidId: Int
The value to use for an invalid UID, for example if the resource could not be loaded.
static func addId(Int, path: String
) Adds a new UID value which is mapped to the given resource path.
static func createId(
) -> Int Generates a random resource UID which is guaranteed to be unique within the list of currently loaded UIDs.
static func getIdPath(id: Int
) -> String Returns the path that the given UID value refers to.
static func hasId(Int
) -> Bool Returns whether the given UID value is known to the cache.
static func idToText(id: Int
) -> String Converts the given UID to a
uid://
string value.static func removeId(Int
) Removes a loaded UID value from the cache.
static func setId(Int, path: String
) Updates the resource path of an existing UID.
static func textToId(textId: String
) -> Int Extracts the UID value from the given
uid://
string.