C# Class TexturePainter, InteractivePaint

Inheritance: MonoBehaviour
Mostra file Open project: OpenHID/InteractivePaint Class Usage Examples

Public Properties

Property Type Description
baseMaterial Material
brushCursor GameObject
canvasTexture RenderTexture
cursorPaint Sprite
sceneCamera Camera

Public Methods

Method Description
DoAction ( ) : void
SaveTexture ( ) : void
SetBrushMode ( Painter_BrushMode brushMode ) : void
SetBrushSize ( float newBrushSize ) : void
ShowCursor ( ) : void
Update ( ) : void
UpdateBrushCursor ( ) : void

Private Methods

Method Description
HitTestUVPosition ( Vector3 &uvWorldPosition ) : bool

Method Details

DoAction() public method

public DoAction ( ) : void
return void

SaveTexture() public method

public SaveTexture ( ) : void
return void

SetBrushMode() public method

public SetBrushMode ( Painter_BrushMode brushMode ) : void
brushMode Painter_BrushMode
return void

SetBrushSize() public method

public SetBrushSize ( float newBrushSize ) : void
newBrushSize float
return void

ShowCursor() public method

public ShowCursor ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateBrushCursor() public method

public UpdateBrushCursor ( ) : void
return void

Property Details

baseMaterial public_oe property

public Material baseMaterial
return Material

brushCursor public_oe property

public GameObject brushCursor
return GameObject

canvasTexture public_oe property

public RenderTexture canvasTexture
return RenderTexture

cursorPaint public_oe property

public Sprite cursorPaint
return Sprite

sceneCamera public_oe property

public Camera sceneCamera
return Camera