Content

Update the content of the text component.

If this property is used as the Pipeline.updateSceneGraphProperty's targetProperty parameter, the data tensor parameter can be any tensor.

  1. If the tensor is a scalar array of character datatypes, i.e., Tensor.DataType.UINT8 or Tensor.DataType.INT8, the tensor will be interpreted as a UTF-8 string, as the text content directly.

  2. Otherwise, the tensor's values will be converted to text one by one and concatenated into a single string as the text content.