コード例 #1
0
	public void OnPreprocessTexture()
	{
		if (ImportSettingData.Setting.Toggle == false)
			return;

		string importAssetPath = this.assetPath;
		IAssetProcessor processor = ImportSettingData.GetCustomProcessor(importAssetPath);
		if (processor != null)
			processor.OnPreprocessTexture(importAssetPath, this.assetImporter);
	}
コード例 #2
0
    public void OnPreprocessTexture()
    {
        if (Setting == null)
        {
            LoadSettingFile();
        }
        if (Setting == null || Setting.Toggle == false)
        {
            return;
        }

        string          importAssetPath = this.assetPath;
        IAssetProcessor processor       = GetCustomProcessor(importAssetPath);

        if (processor != null)
        {
            processor.OnPreprocessTexture(importAssetPath, this.assetImporter);
        }
    }