Unicessing  0.16T
Unicessing is an asset for writing a code like 'Processing' in Unity.
Unicessing.UShape クラス

公開型

enum  CloseType { NONE, CLOSE }
 
enum  ShapeKind {
  NONE, POINT, LINE, RECT,
  ELLIPSE, SPHERE, BOX, CUSTOM
}
 
enum  VertexType {
  NONE, POINTS, LINES, LINE_STRIP,
  CURVE_LINES, CURVE_LINE_STRIP, TRIANGLES, TRIANGLE_FAN,
  TRIANGLE_STRIP, QUADS, QUAD_STRIP, MESH
}
 

公開メンバ関数

 UShape (UGraphics g)
 
void enableStyle ()
 
void disableStyle ()
 
void beginShape (VertexType type=VertexType.LINE_STRIP)
 
void endShape (int closeType)
 
void endShapeClose ()
 
void endShape (CloseType closeType=CloseType.NONE)
 
void vertex (float x, float y, float z=0.0f)
 
void vertex (float x, float y, float u, float v)
 
void vertex (float x, float y, float z, float u, float v)
 
void vertex (Vector3 pos)
 
void vertex (Vector3 pos, Vector2 uv)
 
void curveVertex (float x, float y, float z=0.0f)
 
void curveVertex (Vector3 pos)
 
void fill ()
 
void fill (float gray, float alpha=255)
 
void fill (float r, float g, float b, float a=255)
 
void fill (Color col)
 
void noFill ()
 
void stroke ()
 
void stroke (float gray, float alpha=255)
 
void stroke (float r, float g, float b, float a=255)
 
void stroke (Color col)
 
void noStroke ()
 
void lights ()
 
void noLights ()
 
void addChild (UShape shape)
 
void removeChild (UShape shape)
 
void removeChild (int index)
 
void saveAssetDB (Mesh mesh)
 
void recalc (Mesh mesh, bool isUpdateNormal=true)
 
void draw (Matrix4x4 matrix, Color col, Texture tex, int layer, Camera camera)
 
void draw (Matrix4x4 matrix, Camera camera)
 
void drawNow (Matrix4x4 matrix, Color col)
 
Mesh createPoint (float x, float y, float z)
 
Mesh createLine (float x1, float y1, float z1, float x2, float y2, float z2)
 
Mesh createRect (float x, float y, float w, float h)
 
Mesh createQuad (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, bool isClockwise=true)
 
Mesh createEllipse (float x, float y, float w, float h)
 
Mesh createBox (float w, float h, float d)
 
Mesh createSphere (float w, float h, float d, int ures=30, int vres=30)
 

公開変数類

UGraphics.UStyle style
 
bool isClockwise = false
 
int curveDivision = 16
 

プロパティ

Color nowColor [get]
 
bool isFillShape [get]
 
bool is2DShape [get]
 
int vertexCount [get]
 

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