loade objects from assets

will I have to make a sky box material and while a certain event done the material will change, I declare a variable name “BLUSKY” and assigned the value
((from the assets)) like the following :

var BLUSKY: MaterialApplication.dataPath+“/Skyboxes/Sunset.mat”;

but it does not work
so what is the correct syntax ???

I assume you’re using Javascript (and it’s best to report the error message you’re seeing).

Try “=” instead of “:” for your variable assignment. If you’re new to scripting, there’s a quick overview in the User Manual under Working With Assets->Using Scripts, in particular an example under “The Power of Variables”