Class PointOfInterestDiscovery
Marks a point of interest's Region as discoverable: entering it the first time counts the site once for the character (DiscoverSiteAction).
[DisallowMultipleComponent]
public class PointOfInterestDiscovery : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourPointOfInterestDiscovery
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.MemberwiseClone()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
Identity is (scene, SiteIndex), the site's per-scene unlock index — the
same stable index its waypoint and portal use, carried over a re-cut by nearest match. A site's
discovery is one bit of the character's record under RecordKey(string), kept and persisted
with the per-character portal activations (PortalActivationStore,
character_portals): the same set-only bit pages, a different key, so nothing new is stored
or loaded for it.
Written by the point-of-interest generator's exploration feature onto the region it rides.
Fields
KeySuffix
Suffix that keeps discovery bits apart from a scene's portal bits.
public const string KeySuffix = "#sites"
Field Value
SiteIndex
[Tooltip("The site's per-scene unlock index: stable forever, the bit a character's discovery record stores.")]
public int SiteIndex
Field Value
Methods
IsDiscoveryKey(string)
Whether a per-character record key is a discovery key rather than a scene's portals.
public static bool IsDiscoveryKey(string recordKey)
Parameters
recordKeystring
Returns
RecordKey(string)
The record key a scene's site discoveries are kept under.
public static string RecordKey(string sceneName)
Parameters
sceneNamestring