GAudio.GATSoundBank.GetFullPathsInStreamingAssets C# (CSharp) Method

GetFullPathsInStreamingAssets() public method

public GetFullPathsInStreamingAssets ( List sampleNames ) : string[]
sampleNames List
return string[]
        public string[] GetFullPathsInStreamingAssets( List< string > sampleNames )
        {
            int i;
            GATSampleInfo info;

            List< string > pathsList = new List<string>( sampleNames.Count );
            string path;

            for( i = 0; i < _sampleInfos.Count; i++ )
            {
                info = _sampleInfos[ i ];
                if( sampleNames.Contains( info.Name ) )
                {
                    path = info.GetStreamingAssetFullPath();
                    if( path == null )
                    {
                        #if UNITY_EDITOR
                        Debug.LogError( info.FileName + " is not in a streaming asset." );
                        #endif
                        continue;
                    }
                    else
                    {
                        pathsList.Add( path );
                    }
                }
            }

            string[] res = new string[ pathsList.Count ];
            pathsList.CopyTo( res );

            return res;
        }