文档

Unity Engine

Unity Engine

GetOrCreateNamespace(string)

Retrieves or creates the ContentNamespace if it doesn't exist.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Content
  • Assembly: UnityEngine.CoreModule
public static ContentNamespace GetOrCreateNamespace(string name)

Parameters

name

Name of the ContentNamespace. It must contain only alphanumeric characters and have a maximum length of 16 characters.

Returns

Type

Description

ContentNamespaceReturns the specified ContentNamespace object.