Version: 2021.1
언어: 한국어

ShaderImporter

class in UnityEditor

/

다음으로부터 상속:AssetImporter

매뉴얼로 전환

설명

Shader importer lets you modify shader import settings from Editor scripts.

변수

preprocessorOverrideThe preprocessor that Unity uses to compile this shader.

Public 함수

GetDefaultTextureGets the default texture assigned to the shader importer for the shader property with given name.
GetNonModifiableTextureGets the non-modifiable texture assigned to the shader importer for the shader property with given name.
GetShaderGets the reference to the shader imported by this importer.
SetDefaultTexturesSets the default textures for each texture material property.
SetNonModifiableTexturesSets the non-modifiable textures for each texture material property.

상속된 멤버

변수

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.