pyunity.values module

class pyunity.values.HSV(h, s, v)[source]

Bases: pyunity.values.Color

A class to represent a HSV color.

Parameters:
  • h (int) – Hue (0-360)
  • s (int) – Saturation (0-100)
  • v (int) – Value (0-100)
class pyunity.values.Material(color, texture=None)[source]

Bases: object

Class to hold data on a material.

color

An albedo tint.

Type:Color
texture

A texture to map onto the mesh provided by a MeshRenderer

Type:Texture2D
class pyunity.values.RGB(r, g, b)[source]

Bases: pyunity.values.Color

A class to represent an RGB color.

Parameters:
  • r (int) – Red value (0-255)
  • g (int) – Green value (0-255)
  • b (int) – Blue value (0-255)