Beispiel #1
0
 void OnGUI()
 {
     {
         Color blue = Color.blue;
         blue.a = 0.25f;
         Matrix4x4 mat = transform.localToWorldMatrix * Matrix4x4.Scale(new Vector3(1.0f, 1.0f, 0.0f));
         matLine.SetPass(0);
         MPGPPlayer.DrawWireCube(mat, blue);
     }
 }
Beispiel #2
0
    void OnGUI()
    {
        Color blue = Color.blue;

        blue.a = 0.25f;
        Matrix4x4 mat = forceMatrix * Matrix4x4.Scale(new Vector3(0.0f, 1.0f, 1.0f));

        matLine.SetPass(0);
        MPGPPlayer.DrawWireCube(mat, blue);
    }