Class Utils
Inheritance
System.Object
Utils
Assembly: cs.temp.dll.dll
Fields
Declaration
public static string[] AndroidImageSequenceFormatNames
Field Value
| Type |
Description |
| System.String[] |
|
Declaration
public static string[] IOSImageSequenceFormatNames
Field Value
| Type |
Description |
| System.String[] |
|
Declaration
public static string[] MacOSImageSequenceFormatNames
Field Value
| Type |
Description |
| System.String[] |
|
Declaration
public static string[] WindowsImageSequenceFormatNames
Field Value
| Type |
Description |
| System.String[] |
|
Methods
Declaration
public static bool DriveFreeBytes(string folderName, out ulong freeSpace)
Parameters
| Type |
Name |
Description |
| System.String |
folderName |
|
| System.UInt64 |
freeSpace |
|
Returns
| Type |
Description |
| System.Boolean |
|
Returns a list of cameras sorted in render order from first to last that contribute to the rendering to parentCamera
Declaration
public static Camera[] FindContributingCameras(Camera parentCamera)
Parameters
| Type |
Name |
Description |
| Camera |
parentCamera |
|
Returns
| Type |
Description |
| Camera[] |
|
GetBestRenderTextureFormat(Boolean, Boolean, Boolean)
Declaration
public static RenderTextureFormat GetBestRenderTextureFormat(bool supportHDR, bool supportTransparency, bool favourSpeedOverQuality)
Parameters
| Type |
Name |
Description |
| System.Boolean |
supportHDR |
|
| System.Boolean |
supportTransparency |
|
| System.Boolean |
favourSpeedOverQuality |
|
Returns
| Type |
Description |
| RenderTextureFormat |
|
Declaration
public static long GetFileSize(string filename)
Parameters
| Type |
Name |
Description |
| System.String |
filename |
|
Returns
| Type |
Description |
| System.Int64 |
|
Declaration
public static string GetImageFileExtension(ImageSequenceFormat format)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public static string[] GetNativeImageSequenceFormatNames()
Returns
| Type |
Description |
| System.String[] |
|
The "main" camera isn't necessarily the one the gets rendered last to screen,
so we sort all cameras by depth and find the one with no render target
Declaration
public static Camera GetUltimateRenderCamera()
Returns
HasAlphaChannel(RenderTextureFormat)
Declaration
public static bool HasAlphaChannel(RenderTextureFormat format)
Parameters
| Type |
Name |
Description |
| RenderTextureFormat |
format |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool HasContributingCameras(Camera parentCamera)
Parameters
| Type |
Name |
Description |
| Camera |
parentCamera |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool OpenInDefaultApp(string itemPath)
Parameters
| Type |
Name |
Description |
| System.String |
itemPath |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool ShowInExplorer(string itemPath)
Parameters
| Type |
Name |
Description |
| System.String |
itemPath |
|
Returns
| Type |
Description |
| System.Boolean |
|