void NodeOptions() { ImGui.Text(string.Format("Selected: {0}", selectedReference.Node.NodeName)); ImGui.Text(selectedReference.Node.Name); //Node enabled var enabled = instance.NodeEnabled(selectedReference); var wasEnabled = enabled; ImGui.Checkbox("Enabled", ref enabled); if (enabled != wasEnabled) { instance.SetNodeEnabled(selectedReference, enabled); } // if (selectedReference.Node is FxEmitter emitter) { ImGui.Text($"InitLifeSpan: {emitter.InitLifeSpan.GetValue(sparam, 0)}"); ImGui.Text($"Frequency: {emitter.Frequency.GetValue(sparam, 0)}"); ImGui.Text($"Pressure: {emitter.Pressure.GetValue(sparam, 0)}"); } //Normals? //Textures? //Debug volumes? }
void NodeOptions() { ImGui.Text(string.Format("Selected: {0}", selectedReference.Node.NodeName)); ImGui.Text(selectedReference.Node.Name); //Node enabled var enabled = instance.NodeEnabled(selectedReference); var wasEnabled = enabled; ImGui.Checkbox("Enabled", ref enabled); if (enabled != wasEnabled) { instance.SetNodeEnabled(selectedReference, enabled); } //Normals? //Textures? //Debug volumes? }