Version: 2023.1

EditorUtility.IsValidUnityYAML

切换到手册
public static bool IsValidUnityYAML (string yaml);

参数

yaml String containing the value to be parsed.

描述

Returns true if the provided string can be parsed as YAML.

Do not use this in performance sensitive contexts.