Class BrushRenderPreviewWithTerrainUiGroup
Inheritance
System.Object
BrushRenderPreviewWithTerrainUiGroup
Syntax
public class BrushRenderPreviewWithTerrainUiGroup : BrushRenderWithTerrainUiGroup, IBrushRenderPreviewWithTerrain, IBrushRenderWithTerrain, IPaintContextRenderPreview, IPaintContextRender, IDisposable
Constructors
BrushRenderPreviewWithTerrainUiGroup(IBrushUIGroup, String, Texture)
Declaration
public BrushRenderPreviewWithTerrainUiGroup(IBrushUIGroup uiGroup, string name, Texture brushTexture)
Parameters
Type |
Name |
Description |
IBrushUIGroup |
uiGroup |
|
System.String |
name |
|
Texture |
brushTexture |
|
Methods
Declaration
public override bool CalculateBrushTransform(Terrain terrain, Vector2 uv, float size, float rotation, out BrushTransform brushTransform)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
Vector2 |
uv |
|
System.Single |
size |
|
System.Single |
rotation |
|
BrushTransform |
brushTransform |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
RenderBrushPreview(PaintContext, TerrainPaintUtilityEditor.BrushPreview, BrushTransform, Material, Int32)
Declaration
public void RenderBrushPreview(PaintContext paintContext, TerrainPaintUtilityEditor.BrushPreview previewTexture, BrushTransform brushTransform, Material material, int pass)
Parameters
Type |
Name |
Description |
PaintContext |
paintContext |
|
TerrainPaintUtilityEditor.BrushPreview |
previewTexture |
|
BrushTransform |
brushTransform |
|
Material |
material |
|
System.Int32 |
pass |
|
Implements