기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


SetTextUtf8(ReadOnlySpan<byte>)

Sets the text content from a UTF-8 encoded byte sequence without allocating a managed string.
읽는 시간 1분최근 업데이트: 8일 전

Definition

public void SetTextUtf8(ReadOnlySpan<byte> utf8)

Parameters

The UTF-8 encoded bytes to set as the element's text content.

Remarks

This method is slower than its UTF-16 counterparts since transcoding is unavoidable. Prefer using TextElement.SetText when possible.