Esempio n. 1
0
    void RopeMesherGUI(MegaRopeStrandedMesher rm)
    {
        rm.show = EditorGUILayout.Foldout(rm.show, "Mesher Options");

        if (rm.show)
        {
            rm.sides        = EditorGUILayout.IntField("Sides", rm.sides);
            rm.strands      = EditorGUILayout.IntField("Strands", rm.strands);
            rm.strandRadius = EditorGUILayout.FloatField("Strand Radius", rm.strandRadius);
            rm.offset       = EditorGUILayout.FloatField("Offset", rm.offset);
            //rm.radius = EditorGUILayout.FloatField("Radius", rm.radius);
            //rm.segments = EditorGUILayout.IntField("Segments", rm.segments);
            rm.SegsPerUnit  = EditorGUILayout.FloatField("Segs Per Unit", rm.SegsPerUnit);
            rm.TwistPerUnit = EditorGUILayout.FloatField("Twists Per Unit", rm.TwistPerUnit);
            rm.uvtwist      = EditorGUILayout.FloatField("UV Twist", rm.uvtwist);
            rm.uvtilex      = EditorGUILayout.FloatField("UV Tile X", rm.uvtilex);
            rm.uvtiley      = EditorGUILayout.FloatField("UV Tile Y", rm.uvtiley);
            rm.Twist        = EditorGUILayout.FloatField("Twist", rm.Twist);
            rm.cap          = EditorGUILayout.Toggle("Cap", rm.cap);
        }
    }
Esempio n. 2
0
    void RopeMesherGUI(MegaRopeStrandedMesher rm)
    {
        rm.show = EditorGUILayout.Foldout(rm.show, "Mesher Options");

        if ( rm.show )
        {
            rm.sides = EditorGUILayout.IntField("Sides", rm.sides);
            rm.strands = EditorGUILayout.IntField("Strands", rm.strands);
            rm.strandRadius = EditorGUILayout.FloatField("Strand Radius", rm.strandRadius);
            rm.offset = EditorGUILayout.FloatField("Offset", rm.offset);
            //rm.radius = EditorGUILayout.FloatField("Radius", rm.radius);
            //rm.segments = EditorGUILayout.IntField("Segments", rm.segments);
            rm.SegsPerUnit = EditorGUILayout.FloatField("Segs Per Unit", rm.SegsPerUnit);
            rm.TwistPerUnit = EditorGUILayout.FloatField("Twists Per Unit", rm.TwistPerUnit);
            rm.uvtwist = EditorGUILayout.FloatField("UV Twist", rm.uvtwist);
            rm.uvtilex = EditorGUILayout.FloatField("UV Tile X", rm.uvtilex);
            rm.uvtiley = EditorGUILayout.FloatField("UV Tile Y", rm.uvtiley);
            rm.Twist = EditorGUILayout.FloatField("Twist", rm.Twist);
            rm.cap = EditorGUILayout.Toggle("Cap", rm.cap);
        }
    }