Version: 2021.3
언어: 한국어

MonoImporter

class in UnityEditor

/

다음으로부터 상속:AssetImporter

매뉴얼로 전환

설명

Represents a C# script in the project.

Public 함수

GetDefaultReferenceGets the default value for a reference field in the imported MonoScript.
GetIconGets the icon to associate with the imported MonoScript.
GetScriptGets the imported MonoScript. If the imported C# file contains multiple classes, the first is returned.
SetDefaultReferencesSets default references for this MonoScript.
SetIconSets a custom icon to associate with the imported MonoScript.

정적 함수

GetAllRuntimeMonoScriptsGets an array of scripts that will be available at runtime.
GetExecutionOrderGets the execution order for a MonoScript.
SetExecutionOrderSets the execution order for a MonoScript. This method forces Unity to reimport the MonoImporter for the target script.

상속된 멤버

변수

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantGet or set the AssetBundle variant.
assetPathThe path name of the asset for this importer. (Read Only)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataGet or set any user data.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public 함수

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.
GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

정적 함수

GetAtPathRetrieves the asset importer for the asset at path.
DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.

연산자

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.