기술 자료

Unity Engine

Unity Engine

SetReference(TableReference, TableEntryReference)

Sets the table and entry references together so the reference refreshes only once.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public void SetReference(TableReference table, TableEntryReference entry)

Parameters

The table collection to resolve the entry from.

The entry within the table collection to resolve.

Remarks

Prefer this over assigning LocalizedReference.TableReference and LocalizedEntry<TEntry>.TableEntryReference separately, because it applies both values with a single refresh of any live listeners.
Point a reference at an entry in one call.

Examples

using Unity.Localization;namespace Unity.Localization.Samples{ public class LocalizedEntrySetReferenceExample { public void SetReference() { var reference = new LocalizedString(); reference.SetReference("My Strings", "HELLO"); } }}