Added native and editor checks to Platform