C# 클래스 DockingCamera.Util

Static class of utilities
파일 보기 프로젝트 열기: DennyTX/DockingCam

공개 메소드들

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