Hi guys I’ve upgraded my project from 1.5 to 1.6.2-beta, I used to load assets using the following:
var texture = Asset.Load<Texture>("texture1");
Now it seems that Asset.Load is deprecated, I’ve checked the docs for assets: http://doc.xenko.com/1.6/manual/engine/asset-manager/index.html I’m still seeing the same example.
I’ve replaced my code with the following:
ContentManager ManagerAsset = new ContentManager();
ManagerAsset.Load<Texture>("texture1");
But I got errors on run time.
- Where did I go wrong I wonder?
- What would be the alternative to: Asset.Load(“texture1”);
Debug Notes:
http://postimg.org/gallery/2lwq5jf2a/66dee6e4/
Thanks.