Table of Contents

Class TeleporterKey

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

The one spelling of a teleporter's lookup key.

public static class TeleporterKey
Inheritance
TeleporterKey
Inherited Members

Remarks

A cross-scene teleport is resolved by name: the world scene details cache stores each teleporter under its GameObject name, and the runtime sends the GameObject name of the object the player used. Those two names were produced by different code. The bake trimmed whitespace; the runtime did not. The client stripped Unity's (Clone) suffix in Interactable.Awake; the server build did not, because that strip sat behind !UNITY_SERVER. A key that depends on which process computed it is not a key, so every producer and consumer goes through here.

Methods

Normalize(string)

Normalises a GameObject name into the teleporter key: whitespace trimmed and every (Clone) suffix removed. Null and empty come back as empty.

public static string Normalize(string gameObjectName)

Parameters

gameObjectName string

Returns

string