From the course: Unity Medical Visualization: 03 Deployment and Usability

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Linking PC to mobile controls

Linking PC to mobile controls

- [Instructor] In this movie, I want to focus on platform dependent compilation. Which is a really NEAT feature right here inside visual studio and C sharp generally. It allows us to effectively avoid compiling different lines inside our script files when they're not relevant to the platform we're targeting, there might be a ton of script that we don't need to run on a mobile device and there might be mobile code that we don't need to run our desktop device. When we're building our unity project we'll need to make different builds for different platforms. One for the desktop, one for the mobile. Now platform dependent compilation are additional statements we can put into our script files to mark out areas that have relevant for different platforms. If you take a look at the script file we've been creating so far, input axis control dot C sharp. There are different elements within the GetAxisCustom function that apply…

Contents