Inno.Editor.Panel.ShaderEditor editor-script examples
Section titled “Inno.Editor.Panel.ShaderEditor editor-script examples”These examples use the selected logical script surface. Read the feature contract before adapting them. Host implementation namespaces and host-only readiness services are not substitutes for these references.
Provide the live services or authored source context required by each declaration. Compilation verifies these use sites, not device execution or completion of a reload lifecycle.
using InnoEditor.Shaders;
[ShaderNodeDrawer("example.surface")]public sealed class SurfaceDrawer : ShaderNodeDrawer{ public override void Draw(ShaderNodeDrawContext context) { float current = context.Read("gain", 1f); // Draw a shared Editor numeric widget here and call Write only after a user edit. // context.Write("gain", editedValue, continuous: true); }}