public override ShapeBase CreateShapeInstance() { LightGridBoxShape box = new LightGridBoxShape("LightGridBox"); box.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return(box); }
/// <summary> /// This function must be overridden, since we have to reset the hotspots /// </summary> /// <returns></returns> public override ShapeBase Clone() { LightGridBoxShape copy = (LightGridBoxShape)base.Clone(); System.Diagnostics.Debug.Assert(!copy.Selected); // turned off in ShapeBase copy._hotSpotSizeX = null; copy._hotSpotSizeY = null; copy._hotSpotSizeZ = null; return(copy); }
public override ShapeBase CreateShapeInstance() { LightGridBoxShape box = new LightGridBoxShape("LightGridBox"); box.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return box; }