Version: 2017.3

TextGenerator.PopulateWithErrors

切换到手册
public bool PopulateWithErrors (string str, TextGenerationSettings settings, GameObject context);

参数

str 要生成的字符串。
settings 生成设置。
context 对象,必要时用作错误日志消息的上下文。

返回

bool 如果生成成功,则为 true,否则为 false。

描述

将使用给定设置为给定字符串生成顶点和其他数据。

仅当字符串和设置与上次执行不同时才会重新生成。