public AssetAuditTreeElement(string name, string _projectPath, int depth, int id, bool _isAsset, bool _conforms, AssetAuditor.AssetType _assetType) : base(name, depth, id) { isAsset = _isAsset; projectPath = _projectPath; conforms = _conforms; assetType = _assetType; }
private static SerializedObject GetSerializedObject(AssetAuditor.AssetType assetType) { SerializedObject so = null; switch (assetType) { case AssetAuditor.AssetType.Texture: so = new SerializedObject(TextureImporter.GetAtPath(AssetAuditorPreferences.ProxyTexturePath)); break; case AssetAuditor.AssetType.Model: so = new SerializedObject(ModelImporter.GetAtPath(AssetAuditorPreferences.ProxyModelPath)); break; case AssetAuditor.AssetType.Audio: so = new SerializedObject(AudioImporter.GetAtPath(AssetAuditorPreferences.ProxyAudioPath)); break; case AssetAuditor.AssetType.Folder: break; default: throw new ArgumentOutOfRangeException(); } return(so); }