Search Unity

Platform dependend game objects?

Discussion in 'Editor & General Support' started by Wokarol, Jan 3, 2019.

  1. Wokarol

    Wokarol

    Joined:
    Aug 1, 2017
    Posts:
    34
    So basically we can write platform dependend code that is compiled only on certain platforms. Is there a good way to use this idea in scene? For components and whole objects.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I believe platform dependent code should be used as little as possible and only when there are no other better solutions. If you use it too often you increase the chances of platform specific bugs of your own creation, and increase the burden of platform specific testing in order to catch them.