Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Application.temporaryCachePath

static var temporaryCachePath: string;
static string temporaryCachePath;
static temporaryCachePath as string

Description

Contains the path to a temporary data / cache directory (Read Only).

The value is a directory path where temporary data can be stored.

	// print the path to the temporary data folder
	print (Application. temporaryCachePath);
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        print(Application.temporaryCachePath);
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		print(Application.temporaryCachePath)