Are you using VSCode… That seems like a typescript cant find the .d.ts files (babylon.d.ts and babylon.manager.d.ts)
Try get latest VS Code… Also BUILD the whole project ONCE to create tsconfig.json in the root project folder… The tsconfig.json SHOULD allow the .d.ts files to be ANYWHERE in the /Assets/** folder… I think they are in the babylon template library folder now.
@MackeyK24@Drigax
After trying to build it ctr+ shift + b I’m getting a ton of errors:
Assets/Toolkit/UnityExporter-master/Manager/src/babylon-system.ts:577:63 - error TS2694: Namespace 'BABYLON' has no exported member 'Animation'.
577 public static FastMatrixInterpolate(animation:BABYLON.Animation, currentFrame: number, loopMode:number, result:BABYLON.Matrix):void {
No… Not that tsconfig from the latest repo… That is for my new Scene Manager API which is not ready yet.
When you build project in the Unity Exporter… It will generate a tsconfig.json (each time you build)… Its gets its info from the templates/config.json (or something like that)
Note: The Build Project in the Unity Exporter… Does ALOT MORE than just trying to build Directly Frmo VSCode… Is That What Are doing… Trying to build from VSCode…
Try look at the Getting Started Video… I think it goes into the BUILD and PREVIEW options
You dont have to manually put tsconfig.json in your project folder… the build will handle that using the config template (/Assets/Babylon/Templates/Config/options.json)
Second… It looks like you took the WHOLE repo and imported into your project.
YOU ONLY NEED TO DRAG THE Babylon Editor Toolkit.unitypackage from the the redist folder into your clean Unity Project.
You should have a folder layout like this (/Assets/Babylon is Main Toolkit Folder):
Yep… Its all in the video… about the Unity Package you need to install in your project… Check that out
Note: You do not copy the whole UnityExporter-Master… You just need to install the native unity package for the toolkit: Babylon Editor Toolkit.unitypackage that is in the REDIST folder
Hey @MackeyK24 the previouse images were of me importing the redistribute to a empty folder but I tried importing it again, building but I’m still not getting the namespace reference:
Also… FOLD OUT your Script Compilation Options on the Scene Exporter Panel… Maybe you dont even have the Script Compiler Stuff Setup
Take a screen shot with the script options so i can see what you got
Note: the video at 11:30 minutes in shows the Typescript Setup Options… Just enable typescript and detect your tsc compiler locations… Please watch whole video
After rebuilding it and restarting it started working, it must have been some dependencies, thank you so much Mackey, and thank you so much for the tool!