Class SyncMaterialScriptedImporter
Inheritance
SyncMaterialScriptedImporter
Inherited Members
UnityEditor.AssetImporter.AddRemap(UnityEditor.AssetImporter.SourceAssetIdentifier, UnityEngine.Object)
UnityEditor.AssetImporter.RemoveRemap(UnityEditor.AssetImporter.SourceAssetIdentifier)
UnityEditor.AssetImporter.assetTimeStamp
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEditor.Reflect
Syntax
[ScriptedImporter(2, "SyncMaterial", 1)]
public class SyncMaterialScriptedImporter : ReflectScriptedImporter, ITextureCache
Methods
GetTexture(StreamKey)
Declaration
public virtual Texture2D GetTexture(StreamKey key)
Parameters
Type | Name | Description |
---|---|---|
StreamKey | key |
Returns
Type | Description |
---|---|
Texture2D |
Implements
Import(SyncMaterial, ITextureCache, SyncMaterialImporter)
Declaration
public static Material Import(SyncMaterial syncMaterial, ITextureCache textureCache, SyncMaterialImporter importer)
Parameters
Type | Name | Description |
---|---|---|
SyncMaterial | syncMaterial | |
ITextureCache | textureCache | |
SyncMaterialImporter | importer |
Returns
Type | Description |
---|---|
Material |
OnImportAsset(AssetImportContext)
Declaration
public override void OnImportAsset(AssetImportContext ctx)
Parameters
Type | Name | Description |
---|---|---|
AssetImportContext | ctx |