C# 클래스 RedBlueGames.Tools.Utilities

Class that stores generic Utiliities that have no other home.
파일 보기 프로젝트 열기: redbluegames/rb-unity-tools

공개 메소드들

메소드 설명
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