C# Класс DockingCamera.Util

Static class of utilities
Показать файл Открыть проект

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

Метод Описание
GetTimeMark ( Double UniversalTime ) : String
LoadTexture ( string name ) : Texture2D

Load Texture2D from standard folder

MonoColorHorizontalLineTexture ( Color color, int size ) : Texture2D

Generate horizontal line

MonoColorRectTexture ( Color color ) : Texture2D

Generate rectangle

MonoColorTexture ( Color color, int width, int height ) : Texture2D

Texture generating a specific color

MonoColorVerticalLineTexture ( Color color, int size ) : Texture2D

Generate vertical line

SavePng ( this renderTexture, string photoFrom ) : void

This class converts time strings like "1d 2m 2s" into a double value as seconds and also vice versa, based on kerbin time.

WhiteNoiseTexture ( int width, int height, float alpha = .16f ) : Texture2D

Приватные методы

Метод Описание
converter ( Double time, StringBuilder timeMark, uint seconds, String suffix ) : Double

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

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

public static GetTimeMark ( Double UniversalTime ) : String
UniversalTime Double
Результат String

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

Load Texture2D from standard folder
public static LoadTexture ( string name ) : Texture2D
name string Texture name without extension
Результат UnityEngine.Texture2D

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

Generate horizontal line
public static MonoColorHorizontalLineTexture ( Color color, int size ) : Texture2D
color UnityEngine.Color
size int
Результат UnityEngine.Texture2D

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

Generate rectangle
public static MonoColorRectTexture ( Color color ) : Texture2D
color UnityEngine.Color
Результат UnityEngine.Texture2D

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

Texture generating a specific color
public static MonoColorTexture ( Color color, int width, int height ) : Texture2D
color UnityEngine.Color
width int
height int
Результат UnityEngine.Texture2D

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

Generate vertical line
public static MonoColorVerticalLineTexture ( Color color, int size ) : Texture2D
color UnityEngine.Color
size int
Результат UnityEngine.Texture2D

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

This class converts time strings like "1d 2m 2s" into a double value as seconds and also vice versa, based on kerbin time.
public static SavePng ( this renderTexture, string photoFrom ) : void
renderTexture this
photoFrom string
Результат void

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

public static WhiteNoiseTexture ( int width, int height, float alpha = .16f ) : Texture2D
width int
height int
alpha float
Результат UnityEngine.Texture2D