public override BaseEvent Clone() { SetPathVisibility visibility = ClassObjPool <SetPathVisibility> .Get(); visibility.CopyData(this); return(visibility); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SetPathVisibility visibility = src as SetPathVisibility; this.enabled = visibility.enabled; this.excludeMeshes = visibility.excludeMeshes; this.excludeMeshNames = visibility.excludeMeshNames; this.objPath = visibility.objPath; }