core / pragma.playerdata / PlayerDataSnapshot / getOrCreateUniqueEntity /

getOrCreateUniqueEntity #

fun getOrCreateUniqueEntity(name: String, getComponents: () -> List<Component> = ::emptyList): Entity

Will throw a pragma.ApplicationErrorException if there are multiple entities assigned the provided name, or if the underlying Entity has a corrupted EntityId