Class AssetImportContext
Inheritance
AssetImportContext
Assembly: UnityEditor.dll
Syntax
public class AssetImportContext
Properties
assetPath
Declaration
public string assetPath { get; }
Property Value
mainObject
Declaration
public Object mainObject { get; }
Property Value
selectedBuildTarget
Declaration
public BuildTarget selectedBuildTarget { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddObjectToAsset(String, Object)
Declaration
public void AddObjectToAsset(string identifier, Object obj)
Parameters
AddObjectToAsset(String, Object, Texture2D)
Declaration
public void AddObjectToAsset(string identifier, Object obj, Texture2D thumbnail)
Parameters
|
Improve this Doc
View Source
DependsOnSourceAsset(String)
Declaration
public void DependsOnSourceAsset(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
GetObjects(List<Object>)
Declaration
public void GetObjects(List<Object> objects)
Parameters
|
Improve this Doc
View Source
LogImportError(String, Object)
Declaration
public void LogImportError(string msg, Object obj = null)
Parameters
|
Improve this Doc
View Source
LogImportWarning(String, Object)
Declaration
public void LogImportWarning(string msg, Object obj = null)
Parameters
SetMainObject(Object)
Declaration
public void SetMainObject(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Extension Methods