Three.js Sceneexporter Getting Uncaught Syntax Error
So I am trying to export a three.js scene using the SceneExporter, I am just doing this var output = new THREE.SceneExporter().parse(scope.renderingEngine.scene); When doing this,
Solution 1:
The syntax error is a "Unexpected token: ILLEGAL" character, probably thrown by your use of "\n\t\t" and others (escape sequences) outside strings. I don't know what you are trying to achieve with escape sequences outside strings, and I don't even know if special characters should be used in JSON.
Also, I see "\" at some of your strings. You can't use "\". You can, however, use "\", that is escape sequence for a "\". Using a single "\" inside a string will give you the "Unexpected token: ILLEGAL" error. "\" must always be followed by a character that makes a valid escape sequence.
Post a Comment for "Three.js Sceneexporter Getting Uncaught Syntax Error"