Show / Hide Table of Contents

Class AssetImportContext

Inheritance
Object
AssetImportContext
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor.Experimental.AssetImporters
Assembly: UnityEditor.dll
Syntax
public class AssetImportContext

Properties

assetPath

Declaration
public string assetPath { get; }
Property Value
Type Description
String

mainObject

Declaration
public Object mainObject { get; }
Property Value
Type Description
Object

selectedBuildTarget

Declaration
public BuildTarget selectedBuildTarget { get; }
Property Value
Type Description
BuildTarget

Methods

| Improve this Doc View Source

AddObjectToAsset(String, Object)

Declaration
public void AddObjectToAsset(string identifier, Object obj)
Parameters
Type Name Description
String identifier
Object obj

AddObjectToAsset(String, Object, Texture2D)

Declaration
public void AddObjectToAsset(string identifier, Object obj, Texture2D thumbnail)
Parameters
Type Name Description
String identifier
Object obj
Texture2D thumbnail
| 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
Type Name Description
List<Object> objects
| Improve this Doc View Source

LogImportError(String, Object)

Declaration
public void LogImportError(string msg, Object obj = null)
Parameters
Type Name Description
String msg
Object obj
| Improve this Doc View Source

LogImportWarning(String, Object)

Declaration
public void LogImportWarning(string msg, Object obj = null)
Parameters
Type Name Description
String msg
Object obj

SetMainObject(Object)

Declaration
public void SetMainObject(Object obj)
Parameters
Type Name Description
Object obj

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX