![]() |
Texture paint to canvas. To set the per-material. More...
Classes | |
class | PaintSet |
Public Member Functions | |
bool | PaintUVDirect (Brush brush, Vector2 uv, Func< PaintSet, bool > materialSelector=null) |
Paint processing that UV coordinates to the specified. More... | |
bool | PaintNearestTriangleSurface (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Paint of points close to the given world-space position on the Mesh surface. More... | |
bool | Paint (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Paint processing that use world-space surface position. More... | |
bool | Paint (Brush brush, RaycastHit hitInfo, Func< PaintSet, bool > materialSelector=null) |
Paint processing that use raycast hit data. Must MeshCollider is set to the canvas. More... | |
bool | EraseUVDirect (Brush brush, Vector2 uv, Func< PaintSet, bool > materialSelector=null) |
Erase processing that UV coordinates to the specified. More... | |
bool | EraseNearestTriangleSurface (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Erase of points close to the given world-space position on the Mesh surface. More... | |
bool | Erase (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Erase processing that use world-space surface position. More... | |
bool | Erase (Brush brush, RaycastHit hitInfo, Func< PaintSet, bool > materialSelector=null) |
Erase processing that use raycast hit data. Must MeshCollider is set to the canvas. More... | |
void | ResetPaint () |
To reset the paint. More... | |
Texture | GetMainTexture (string materialName) |
To get the original main texture. More... | |
RenderTexture | GetPaintMainTexture (string materialName) |
To get the main texture in paint. More... | |
void | SetPaintMainTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Texture | GetNormalTexture (string materialName) |
To get the original normal map. More... | |
RenderTexture | GetPaintNormalTexture (string materialName) |
To get the paint in normal map. More... | |
void | SetPaintNormalTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Texture | GetHeightTexture (string materialName) |
To get the original height map. More... | |
RenderTexture | GetPaintHeightTexture (string materialName) |
To get the paint in height map. More... | |
void | SetPaintHeightTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Properties | |
List< PaintSet > | PaintDatas [get, set] |
Access data used for painting. More... | |
MeshOperator | MeshOperator [get] |
Events | |
Action< InkCanvas > | OnCanvasAttached |
Called by InkCanvas attached game object. More... | |
Action< InkCanvas > | OnInitializedStart |
Called by InkCanvas initialization start times. More... | |
Action< InkCanvas > | OnInitializedAfter |
Called by InkCanvas initialization completion times. More... | |
Action< InkCanvas, Brush > | OnPaintStart |
Called at paint start. More... | |
Action< InkCanvas > | OnPaintEnd |
Called at paint end. More... | |
Texture paint to canvas. To set the per-material.
bool Es.InkPainter.InkCanvas.Erase | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Erase processing that use world-space surface position.
brush | Brush data. |
worldPos | Point on object surface (world-space). |
renderCamera | Camera to use to render the object. |
bool Es.InkPainter.InkCanvas.Erase | ( | Brush | brush, |
RaycastHit | hitInfo, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Erase processing that use raycast hit data. Must MeshCollider is set to the canvas.
brush | Brush data. |
hitInfo | Raycast hit info. |
bool Es.InkPainter.InkCanvas.EraseNearestTriangleSurface | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Erase of points close to the given world-space position on the Mesh surface.
brush | Brush data. |
worldPos | Approximate point. |
renderCamera | Camera to use to render the object. |
bool Es.InkPainter.InkCanvas.EraseUVDirect | ( | Brush | brush, |
Vector2 | uv, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Erase processing that UV coordinates to the specified.
brush | Brush data. |
uv | UV coordinates for the hit location. |
Texture Es.InkPainter.InkCanvas.GetHeightTexture | ( | string | materialName | ) |
To get the original height map.
materialName | Material name. |
Texture Es.InkPainter.InkCanvas.GetMainTexture | ( | string | materialName | ) |
To get the original main texture.
materialName | Material name. |
Texture Es.InkPainter.InkCanvas.GetNormalTexture | ( | string | materialName | ) |
To get the original normal map.
materialName | Material name. |
RenderTexture Es.InkPainter.InkCanvas.GetPaintHeightTexture | ( | string | materialName | ) |
To get the paint in height map.
materialName | Material name. |
RenderTexture Es.InkPainter.InkCanvas.GetPaintMainTexture | ( | string | materialName | ) |
To get the main texture in paint.
materialName | Material name. |
RenderTexture Es.InkPainter.InkCanvas.GetPaintNormalTexture | ( | string | materialName | ) |
To get the paint in normal map.
materialName | Material name. |
bool Es.InkPainter.InkCanvas.Paint | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Paint processing that use world-space surface position.
brush | Brush data. |
worldPos | Point on object surface (world-space). |
renderCamera | Camera to use to render the object. |
bool Es.InkPainter.InkCanvas.Paint | ( | Brush | brush, |
RaycastHit | hitInfo, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Paint processing that use raycast hit data. Must MeshCollider is set to the canvas.
brush | Brush data. |
hitInfo | Raycast hit info. |
bool Es.InkPainter.InkCanvas.PaintNearestTriangleSurface | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Paint of points close to the given world-space position on the Mesh surface.
brush | Brush data. |
worldPos | Approximate point. |
renderCamera | Camera to use to render the object. |
bool Es.InkPainter.InkCanvas.PaintUVDirect | ( | Brush | brush, |
Vector2 | uv, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Paint processing that UV coordinates to the specified.
brush | Brush data. |
uv | UV coordinates for the hit location. |
void Es.InkPainter.InkCanvas.ResetPaint | ( | ) |
To reset the paint.
void Es.InkPainter.InkCanvas.SetPaintHeightTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
void Es.InkPainter.InkCanvas.SetPaintMainTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
void Es.InkPainter.InkCanvas.SetPaintNormalTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
|
getset |
Access data used for painting.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnCanvasAttached |
Called by InkCanvas attached game object.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnInitializedAfter |
Called by InkCanvas initialization completion times.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnInitializedStart |
Called by InkCanvas initialization start times.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnPaintEnd |
Called at paint end.