Quantcast
Channel: Latest Questions by XartaX
Browsing all 6 articles
Browse latest View live

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 Article



Access 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 Article

Usage 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

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 Article

Access 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 Article


Usage 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
Browsing all 6 articles
Browse latest View live




Latest Images