Unity Engine documentationScript ReferenceUnityEngineUnityEngine.UIElementsContextTypeDescribes in which context a VisualElement hierarchy is being run.阅读时间1 分钟最后更新于 1 个月前Definition Type: Enum Namespace: UnityEngine.UIElements Assembly: UnityEngine.UIElementsModule public enum ContextType Fields ValueDescriptionEditorCurrently running in the Unity Editor.PlayerCurrently running in an Unity Player.