#X3D V3.0 Group { children [ WorldInfo { title "StringSensor X3D Test" info ["This shows usage of X3D StringSensor" "" "GPAC Regression Tests" "(C) 2002 ENST"] } Transform { translation 0 1 0 children [ Shape { appearance DEF APP Appearance { material Material { diffuseColor 1 1 1 } } geometry Text { string [ "StringSensor" ] fontStyle DEF FS FontStyle { justify [ "MIDDLE" "MIDDLE" ] } } } ] } Transform { translation -4 -1 0 children [ Shape { appearance USE APP geometry Text { string [ "Edit:" ] fontStyle USE FS } } ] } Transform { translation 1.8 -1 0 children [ Shape { appearance USE APP geometry DEF N3 Text { string [""] fontStyle USE FS } } ] } Transform { translation -4 -2.2 0 children [ Shape { appearance USE APP geometry Text { string [ "Final:" ] fontStyle USE FS } } ] } Transform { translation 1.8 -2.2 0 children [ Shape { appearance USE APP geometry DEF N2 Text { string [""] fontStyle USE FS } } ] } DEF STR StringSensor { } ] } ROUTE STR.enteredText TO N3.string ROUTE STR.finalText TO N2.string