public class DrawingModule : Module| DrawingModule | Module constructor method. Calls Init method. |
| ConfigVersion |
Version of the configuration version.
(Overrides ModuleConfigVersion) |
| DisplayName |
Displayed name in the UI.
(Overrides ModuleDisplayName) |
| Drawing | Is drawing mode is on? |
| FlowDir | Brush stroke direction. |
| FoldOut |
Is this module's UI is folded out?
(Inherited from Module) |
| Main | PrefabDrawer window reference.
(Inherited from Module) |
| ModuleConfig |
Configuration of this module.
(Overrides ModuleModuleConfig) |
| ObjName | Parent name field when user wants to create parent object from UI. |
| OldPos | Previous position of the brush when painting. |
| Parent | Parent object for the drawn prefabs. |
| ConfigIsValid |
Is saved data valid for this module?
(Inherited from Module) |
| DrawUI |
UI drawing method.
(Inherited from Module) |
| DuplicatePrefab | This method instantiates prefab at the given position according to the settings. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Init |
Initialize module.
(Inherited from Module) |
| Load |
Load module's settings from Config.
(Inherited from Module) |
| MainUI |
UI that will be displayed inside of the fold out.
(Overrides ModuleMainUI(Rect)) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Paint | Analyzes the given position, applies flow, spacing and brush radius. After that spawns prefab. |
| Save |
Save module's settings.
(Inherited from Module) |
| SceneUpdate |
Called when Scene window is updated.
(Overrides ModuleSceneUpdate(SceneView)) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| onDraw | Event when something is drawn. |