Class Message
A message is a piece of text that can be broken down into multiple sub fragments. A fragment can be writable or read only. A read only fragment indicates that the sub string should be preserved and not modified by ant pseudo methods.
Namespace: UnityEngine .Localization.Pseudo
Assembly: Unity.Localization.dll
Syntax
public class Message
Properties
Name | Description |
---|---|
Fragments | A message is comprised of writable and readonly fragments. Readonly fragments are those that should be preserved such as xml/rich text tags. |
Length | Total length of the Message including all Fragments. |
Original | The original text before it was broken into fragments. |
Methods
Name | Description |
---|---|
Create |
Creates a Read |
Create |
Creates a Read |
Create |
Creates a new Writable |
Create |
Creates a new Writable |
Release |
Returns a Fragment back to its ObjectPool so it can be used again. |
Replace |
Replaces the Fragments in Fragments and returns the previous fragment back to the ObjectPool so it can be reused. |