Unicessing  0.16T
Unicessing is an asset for writing a code like 'Processing' in Unity.
Unicessing.UInput クラス
+ Unicessing.UInput の継承関係図

公開メンバ関数

bool isKey (KeyCode keyCode)
 
bool isKeyDown (KeyCode keyCode)
 
bool isKeyUp (KeyCode keyCode)
 
bool isKey (string keyName)
 
bool isKeyDown (string keyName)
 
bool isKeyUp (string keyName)
 
float inputAxis (string name)
 
Vector2 touch (int index)
 
bool isButton (string name)
 
bool isButtonDown (string name)
 
bool isButtonUp (string name)
 
RaycastHit raycastScreen (float distance=INFINITY, int layerMask=-1)
 
RaycastHit raycastScreen (float x, float y, float distance=INFINITY, int layerMask=-1)
 
void updateMouse3D ()
 
Vector3 planeMousePos (float x, float y, float z)
 
Vector3 planeMousePos (Vector3 planePos)
 
Vector3 planeMousePos (Vector3 planePos, Vector3 planeNormal)
 
Vector3 planeHitPos (Vector3 rayOrigin, Vector3 rayDirection, Vector3 planePos, Vector3 planeNormal)
 
- 基底クラス Unicessing.UCamera に属する継承公開メンバ関数
void InitCamera ()
 
void background (float gray)
 
void background (float r, float g, float b)
 
void background (Color col)
 
void backgroundFlags (CameraClearFlags flags)
 
void backgroundSkybox ()
 
RaycastHit raycast (Vector3 origin, Vector3 direction, float distance=INFINITY, int layerMask=-1)
 
RaycastHit2D raycast (Vector2 origin, Vector2 direction, float distance=INFINITY, int layerMask=-1)
 
- 基底クラス Unicessing.UMath に属する継承公開メンバ関数
void frameRate (int fps)
 
int day ()
 
int hour ()
 
int millis ()
 
int minute ()
 
int month ()
 
int second ()
 
int year ()
 
float abs (float f)
 
int ceil (float f)
 
float constrain (float amt, float low, float high)
 
float dist (float x1, float y1, float x2, float y2)
 
float dist (float x1, float y1, float z1, float x2, float y2, float z2)
 
float exp (float f)
 
int floor (float f)
 
float lerp (float start, float stop, float amt)
 
float log (float f)
 
float min (float a, float b)
 
float min (float a, float b, float c)
 
float min (params float[] values)
 
float max (float a, float b)
 
float max (float a, float b, float c)
 
float max (params float[] values)
 
int min (int a, int b)
 
int min (int a, int b, int c)
 
int max (int a, int b)
 
int max (int a, int b, int c)
 
float sq (float f)
 
float sqrt (float f)
 
float acos (float f)
 
float asin (float f)
 
float atan (float f)
 
float atan2 (float y, float x)
 
float cos (float f)
 
float sin (float f)
 
float tan (float f)
 
float degrees (float rad)
 
float radians (float deg)
 
float noise (float x)
 
float noise (float x, float y)
 
float random (float low, float high)
 
float random (float high)
 
void randomSeed (int seed)
 
int random (int high)
 
int random (int low, int high)
 
string nf (int num, int digits)
 
string nf (float num, int left, int right)
 
string nfs (int num, int digits)
 
string nfs (float num, int left, int right)
 
string nfp (int num, int digits)
 
string nfp (float num, int left, int right)
 
string nfc (int num)
 
string nfc (int num, int right)
 
string [] split (string value, char delim)
 
string [] splitTokens (string value, string delim="¥t¥n¥r¥f ")
 
string trim (string value)
 
string join (string[] stringArray, string separator)
 
float modulo (float a, float b)
 
Vector3 randomVec2 ()
 
Vector3 randomVec3 ()
 
Vector3 randomUnitVec3 ()
 
Vector3 randomScaleVec3 (float r)
 
Vector3 curvePos (Vector3 v0, Vector3 v1, Vector3 v2, Vector3 v3, float t)
 
- 基底クラス Unicessing.UConstants に属する継承公開メンバ関数
Color color (Color baseColor, float alpha=255)
 
Color color (float gray, float alpha=255)
 
Color color (float r, float g, float b, float a=255)
 
bool editorDialog (string title, string message, string ok="OK", string cancel=null)
 

公開変数類

Transform mousePlane
 
- 基底クラス Unicessing.UCamera に属する継承公開変数類
Camera targetCamera
 
- 基底クラス Unicessing.UConstants に属する継承公開変数類
const int CORNER = -7
 
const int CORNER_P5 = -6
 
const int CENTER = -5
 
const int TOP = -4
 
const int BOTTOM = -3
 
const int BASELINE = -2
 
const int CODED = -1
 
const int NONE = 0
 
const int UP = 1
 
const int DOWN = 2
 
const int LEFT = 3
 
const int RIGHT = 4
 
const int MIDDLE = 5
 
const int SHIFT = 10
 
const int CTRL = 11
 
const int BACKSPACE = 20
 
const int TAB = 21
 
const int ENTER = 22
 
const int RETURN = ENTER
 
const int ESC = 23
 
const int DELETE = 24
 
const AxisMode U3D = AxisMode.U3D
 
const AxisMode P2D = AxisMode.P2D
 
const AxisMode P3D = AxisMode.P3D
 
const UShape.VertexType POINTS = UShape.VertexType.POINTS
 
const UShape.VertexType LINES = UShape.VertexType.LINES
 
const UShape.VertexType LINE_STRIP = UShape.VertexType.LINE_STRIP
 
const UShape.VertexType TRIANGLES = UShape.VertexType.TRIANGLES
 
const UShape.VertexType TRIANGLE_FAN = UShape.VertexType.TRIANGLE_FAN
 
const UShape.VertexType TRIANGLE_STRIP = UShape.VertexType.TRIANGLE_STRIP
 
const UShape.VertexType QUADS = UShape.VertexType.QUADS
 
const UShape.VertexType QUAD_STRIP = UShape.VertexType.QUAD_STRIP
 
const UShape.CloseType CLOSE = UShape.CloseType.CLOSE
 
const ColorMode RGB = ColorMode.RGB
 
const ColorMode HSB = ColorMode.HSB
 
const float INFINITY = Mathf.Infinity
 

限定公開メンバ関数

void InitInput ()
 
virtual void OnMousePressed ()
 
virtual void OnMouseReleased ()
 
virtual void OnMouseMoved ()
 
virtual void OnMouseDragged ()
 
virtual void OnKeyPressed ()
 
virtual void OnKeyTyped ()
 
virtual Vector3 OnUpdateMouse3D (Vector3 pos)
 
virtual void UpdateInput ()
 
- 基底クラス Unicessing.UMath に属する継承限定公開メンバ関数
void InitMath ()
 
- 基底クラス Unicessing.UConstants に属する継承限定公開メンバ関数
virtual Color convertColorSpace (float r, float g, float b, float a)
 

プロパティ

bool mousePressed [get]
 
int mouseButton [get]
 
Vector3 mouse3D [get]
 
Vector3 pmouse3D [get]
 
int cursorX [get]
 
int cursorY [get]
 
float mouseX [get]
 
float mouseY [get]
 
float mouseZ [get]
 
float pmouseX [get]
 
float pmouseY [get]
 
float pmouseZ [get]
 
bool keyPressed [get]
 
float moveMouseX [get]
 
float moveMouseY [get]
 
float dragMouseX [get]
 
float dragMouseY [get]
 
float beginDragMouseX [get]
 
float beginDragMouseY [get]
 
float endDragMouseX [get]
 
float endDragMouseY [get]
 
bool mouseReleased [get]
 
int mouseButtonUp [get]
 
int mouseButtonDown [get]
 
float inputX [get]
 
float inputY [get]
 
bool touchPressed [get]
 
bool touchReleased [get]
 
bool touchDown [get]
 
int touchCount [get]
 
string B_FIRE1 [get]
 
string B_FIRE2 [get]
 
string B_FIRE3 [get]
 
string B_JUMP [get]
 
- 基底クラス Unicessing.UCamera に属する継承プロパティ
int displayWidth [get]
 
int displayHeight [get]
 
static float displayAspectW [get]
 
static float displayAspectH [get]
 
- 基底クラス Unicessing.UMath に属する継承プロパティ
int frameCount [get]
 
float PI [get]
 
float HALF_PI [get]
 
float QUATER_PI [get]
 
float TWO_PI [get]
 
float DEG_TO_RAD [get]
 
float RAD_TO_DEG [get]
 
float frameSec [get]
 
float frameCount60 [get]
 
- 基底クラス Unicessing.UConstants に属する継承プロパティ
static float deltaTime [get]
 
static bool isVR [get]
 

その他の継承メンバ

- 基底クラス Unicessing.UConstants に属する継承公開型
enum  AxisMode { U3D, P2D, P3D }
 
enum  ColorMode { RGB, HSB }
 
- 基底クラス Unicessing.UMath に属する継承静的公開メンバ関数
static float mag (float x, float y)
 
static float mag (float x, float y, float z)
 
static float map (float value, float start1, float stop1, float start2, float stop2)
 
static float norm (float value, float start, float stop)
 
static float pow (float n, float e)
 
static int round (float f)
 
- 基底クラス Unicessing.UConstants に属する継承静的公開メンバ関数
static void println (object message)
 
static void debuglog (object message)
 
static void debuglogWaring (object message)
 
static void debuglogError (object message)
 
static void assert (bool condition, string message=null)
 

このクラス詳解は次のファイルから抽出されました: