Version: 2022.2

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.

This should not be used in performance sensitive contexts.