예제 #1
0
 /// <summary>
 /// Initializes the specified mode and links it to the viewport.
 /// </summary>
 /// <param name="viewport">The viewport.</param>
 public virtual void Init(MainEditorGizmoViewport viewport)
 {
     _viewport = viewport;
 }
예제 #2
0
 /// <summary>
 /// Releases the mode. Called on editor exit or when mode gets removed from the current viewport.
 /// </summary>
 public virtual void Dispose()
 {
     _viewport = null;
 }
예제 #3
0
        /// <inheritdoc />
        public override void Init(MainEditorGizmoViewport viewport)
        {
            base.Init(viewport);

            Gizmo = new PaintFoliageGizmo(viewport, this);
        }