@Gautam-Dabral I do not understand your issue Can you please provide a repro in the playground instead of copy pasting code here ? this would help us address the issue ?
I am not sure if i can reproduce the same condition in the playground because I am completely unaware as to how i can use server side logic in the playground .
But to summarize my issue in one line -
I am trying to write a serialized scene as a “.babylon” file in a folder but it is producing an invalid file (file size < 10kb) but when i download the same serialized scene it is producing a valid file but still the downloaded scene has some elements missing ( like shadows and environment ).
I have provide a link to the file that is being downloaded.