C# Класс RedBlueGames.Tools.Utilities

Class that stores generic Utiliities that have no other home.
Показать файл Открыть проект

Открытые методы

Метод Описание
ConvertFileToTexture2D ( string path ) : Texture2D

Loads a file stored at a path and returns it as a Texure2D in Unity.

CopyStringToBuffer ( string copyString ) : void

Copies the string to the OS buffer.

OpenURL ( string url ) : void

Opens the URL in a new window if webplayer build, otherwise uses the behavior built into Application.OpenURL which depends on the platform.

WriteTextureToDisk ( Texture2D texture, string outputDirectory, string filename ) : void

Writes a Texture to Disk

Описание методов

ConvertFileToTexture2D() публичный статический Метод

Loads a file stored at a path and returns it as a Texure2D in Unity.
public static ConvertFileToTexture2D ( string path ) : Texture2D
path string Path to file.
Результат UnityEngine.Texture2D

CopyStringToBuffer() публичный статический Метод

Copies the string to the OS buffer.
public static CopyStringToBuffer ( string copyString ) : void
copyString string String to copy.
Результат void

OpenURL() публичный статический Метод

Opens the URL in a new window if webplayer build, otherwise uses the behavior built into Application.OpenURL which depends on the platform.
public static OpenURL ( string url ) : void
url string URL to open.
Результат void

WriteTextureToDisk() публичный статический Метод

Writes a Texture to Disk
public static WriteTextureToDisk ( Texture2D texture, string outputDirectory, string filename ) : void
texture UnityEngine.Texture2D Texture to write.
outputDirectory string Output directory.
filename string Output filename.
Результат void