// Will show a warning icon in hierarchy when a generator has a problem (do not make this method slow, it is called a lot!) public override void GetWarningMessages(IChiselMessageHandler messages) { if (!PassThrough && !Node.Valid) { messages.Warning(kFailedToGenerateNodeMessage); } if (PassThrough) { return; } // A composite makes no sense without any children if (hierarchyItem != null) { if (hierarchyItem.Children.Count == 0) { messages.Warning(kModelHasNoChildrenMessage); } } else if (transform.childCount == 0) { messages.Warning(kModelHasNoChildrenMessage); } }
public void GetWarningMessages(IChiselMessageHandler messages) { if (!IsValid) { // TODO: show message that internal brush is invalid } if (ValidState) { // TODO: show message that brush is not in valid state } }
public void GetWarningMessages(IChiselMessageHandler messages) { }
protected virtual void ShowWarningMessages(IChiselMessageHandler warnings) { }
public virtual void GetWarningMessages(IChiselMessageHandler messages) { settings.GetWarningMessages(messages); }
public abstract void GetWarningMessages(IChiselMessageHandler messages);