The PropTool class is a class from the root namespace (Assembly-CSharp.dll) that inherits the ToolBase class. It represents the tool in use to place props.
Properties
Property |
Type |
Description
|
m_angle |
float |
The prop placement angle.
|
m_brush |
Texture2D |
The current brush, if used.
|
m_brushSize |
float |
The current brush size, if used.
|
m_buildCursor |
CursorInfo |
|
m_mode |
PropTool.Mode |
Whether the tool is in brush mode or single mode.
|
m_prefab |
PropInfo |
The prop prefab currently grabbed by the tool.
|
m_strength |
float |
The brush strength, if used.
|
Public Methods
Method |
Return Type |
Description
|
GetErrors() |
ToolBase.ToolErrors |
|
OnEnable() |
void |
|
OnDisable() |
void |
|
OnToolGUI(Event e) |
void |
|
OnToolUpdate() |
void |
|
OnToolLateUpdate() |
void |
|
RenderGeometry(RenderManager.CameraInfo cameraInfo) |
void |
|
RenderOverlay(RenderManager.CameraInfo cameraInfo) |
void |
|
SimulationStep() |
void |
|
Static Methods
Method |
Return Type |
Description
|
CheckOverlayAlpha(PropInfo info, float scale, float alpha) |
void |
|
CheckPlacementErrors(PropInfo info, Vector3 position, bool fixedHeight, ushort id, ulong[] collidingSegmentBuffer) |
ToolBase.ToolErrors |
|
DispatchPlacementEffect(Vector3 pos, bool bulldozing) |
void |
|
RenderOverlay(RenderManager.CameraInfo cameraInfo, PropInfo info, Vector3 position, float scale, float angle, Color color) |
void |
|
Sub-Enumerations
PropTool.Mode
Members
|
Brush
|
Single
|