GetBasePath() public static méthode

public static GetBasePath ( ) : string
Résultat string
    public static string GetFullSoundBankPath()
    {
        string basePath = AkInitializer.GetBasePath();

        AkBasePathGetter.FixSlashes(ref basePath);
        return(basePath);
    }
Exemple #2
0
    public static string GetFullBasePath()
    {
        string basePath = AkInitializer.GetBasePath();

        AkBankPathUtil.LazyAppendTrailingSeparator(ref basePath);
        AkBankPathUtil.LazyConvertPathConvention(ref basePath);
        return(basePath);
    }
    public static string GetFullSoundBankPath()
    {
        // Get full path of base path
#if UNITY_ANDROID && !UNITY_EDITOR
        string fullBasePath = AkInitializer.GetBasePath();
#else
        string fullBasePath = Path.Combine(Application.streamingAssetsPath, AkInitializer.GetBasePath());
#endif
        FixSlashes(ref fullBasePath);
        return(fullBasePath);
    }
Exemple #4
0
    /// Returns the bank path, depending on the settings of AkInitializer, without platform-specific folder, in the proper path format.
    public static string GetFullBasePath()
    {
        // Get full path of base path
#if UNITY_ANDROID && !UNITY_EDITOR
        // Wwise Android SDK now loads SoundBanks from APKs.
        #if AK_LOAD_BANK_IN_MEMORY
        string fullBasePath = Path.Combine(Application.streamingAssetsPath, AkInitializer.GetBasePath());
        #else
        string fullBasePath = AkInitializer.GetBasePath();
        #endif // #if AK_LOAD_BANK_IN_MEMORY
#else
        string fullBasePath = Path.Combine(Application.streamingAssetsPath, AkInitializer.GetBasePath());
#endif
        LazyAppendTrailingSeparator(ref fullBasePath);
        LazyConvertPathConvention(ref fullBasePath);
        return(fullBasePath);
    }
Exemple #5
0
    public static string GetFullSoundBankPath()
    {
        // Get full path of base path
#if UNITY_ANDROID && !UNITY_EDITOR
        string fullBasePath = AkInitializer.GetBasePath();
#else
        string fullBasePath = System.IO.Path.Combine(Application.streamingAssetsPath, AkInitializer.GetBasePath());
#endif

#if UNITY_SWITCH
        if (fullBasePath.StartsWith("/"))
        {
            fullBasePath = fullBasePath.Substring(1);
        }
#endif
        FixSlashes(ref fullBasePath);
        return(fullBasePath);
    }
Exemple #6
0
 public virtual string GetBasePath()
 {
     return(AkInitializer.GetBasePath());
 }