InvalidCastException: Cannot cast from source type to destination type.
This line gives me the error in the title (C#): Resource[] resources = (Resource[])GetComponents(typeof(Resource)); If I understood it correctly, this should put all the Resource scripts I have...
View ArticleAccess different root
Is there a way to access a different root folder without having access to an object in said root? I'm thinking about something like this: http://snag.gy/LXijE.jpg Say I'm writing a script attached to...
View ArticleUsage of Layer masks, what am I doing wrong?
I'm looking into using layer masks to make my raycasts ignore certain layers. I've named Layer 8 (the first one open to editing) "Ground" and set my ground object to this layer, and then tried to use...
View ArticleInvalidCastException: Cannot cast from source type to destination type.
This line gives me the error in the title (C#): Resource[] resources = (Resource[])GetComponents(typeof(Resource)); If I understood it correctly, this should put all the Resource scripts I have...
View ArticleAccess different root
Is there a way to access a different root folder without having access to an object in said root? I'm thinking about something like this: http://snag.gy/LXijE.jpg Say I'm writing a script attached to...
View ArticleUsage of Layer masks, what am I doing wrong?
I'm looking into using layer masks to make my raycasts ignore certain layers. I've named Layer 8 (the first one open to editing) "Ground" and set my ground object to this layer, and then tried to use...
View Article
More Pages to Explore .....