コード例 #1
0
        public DebugStyleCode(InitMode initMode)
#endif
        {
            switch (initMode)
            {
            case InitMode.UseLast:
            {
#if ACTIVE_CODE
                this = DebugDraw.ActiveSetup;
#else
                this = default;
#endif
                break;
            }

            default:
            {
                flag       = -1;
                debugSpace = DebugSpace.World;
                matrix     = Matrix4x4.identity;
                color      = Color.white;
                duration   = -1;
                depthTest  = false;
                precision  = 8;
                break;
            }
            }
        }
コード例 #2
0
ファイル: DebugPrimitiveSetup.cs プロジェクト: touky/Prateek
 ///-----------------------------------------------------------------
 public DebugPrimitiveSetup(DebugPrimitiveType type, DebugStyle setup)
 {
     this.type     = type;
     this.setup    = setup;
     endDebugSpace = DebugSpace.World;
     pos           = Vector3.zero;
     rot           = Quaternion.identity;
     extents       = Vector3.one;
     range         = Statics.vec2(0, 1);
 }