Companion

object Companion

Functions

Link copied to clipboard
fun of(stringKey: String): PrefabKey

Creates a key from a string with namespace and key separated by one ':' character.

fun of(namespace: String, name: String): PrefabKey

Creates a key from a namespace and name which must not contain any ':' characters.

Link copied to clipboard
fun ofOrNull(stringKey: String): PrefabKey?

Creates a key like of but returns null when parsing fails.