unity3d+unity_android+宏,Unity3D 系统宏

Platform Defines

The platform defines that Unity supports for your scripts are:

Property:

Function:

UNITY_EDITOR

#define directive for calling Unity Editor scripts from your game code.

UNITY_EDITOR_WIN

#define directive for Editor code on Windows.

UNITY_EDITOR_OSX

#define directive for Editor code on Mac OSX.

UNITY_STANDALONE_OSX

#define directive for compiling/executing code specifically for OS X (including Universal, PPC and Intel architectures).

UNITY_STANDALONE_WIN

#define directive for compiling/executing code specifically for Windows standalone applications.

UNITY_STANDALONE_LINUX

#define directive for compiling/executing code specifically for Linux standalone applications.

UNITY_STANDALONE

#define directive for compiling/executing code for any standalone platform (OS X, Windows or Linux).

UNITY_WII

#define directive for compiling/executing code for the Wii console.

UNITY_IOS

#define directive for compiling/executing code for the iOS platform.

UNITY_IPHONE

Deprecated. Use UNITY_IOS instead.

UNITY_ANDROID

#define directive for the Android platform.

UNITY_PS3

#define directive for running PlayStation 3 code.

UNITY_PS4

#define directive for running PlayStation 4 code.

UNITY_SAMSUNGTV

#define directive for executing Samsung TV code.

UNITY_XBOX360

#define directive for executing Xbox 360 code.

UNITY_XBOXONE

#define directive for executing Xbox One code.

UNITY_TIZEN

#define directive for the Tizen platform.

UNITY_TVOS

#define directive for the Apple TV platform.

UNITY_WP_8

#define directive for Windows Phone 8.

UNITY_WP_8_1

#define directive for Windows Phone 8.1.

UNITY_WSA

#define directive for Windows Store Apps. Additionally, NETFX_CORE is defined when compiling C# files against .NET Core.

UNITY_WSA_8_0

#define directive for Windows Store Apps when targeting SDK 8.0.

UNITY_WSA_8_1

#define directive for Windows Store Apps when targeting SDK 8.1.

UNITY_WSA_10_0

#define directive for Windows Store Apps when targeting Universal Windows 10 Apps. Additionally WINDOWS_UWP and NETFX_CORE are defined when compiling C# files against .NET Core.

UNITY_WINRT

Equivalent to UNITY_WP_8 | UNITY_WSA.

UNITY_WINRT_8_0

Equivalent to UNITY_WP_8 | UNITY_WSA_8_0.

UNITY_WINRT_8_1

Equivalent to UNITY_WP_8_1 | UNITY_WSA_8_1. This is also defined when compiling against Universal SDK 8.1.

UNITY_WINRT_10_0

Equivalent to UNITY_WSA_10_0

UNITY_WEBGL

#define directive for WebGL.

UNITY_ADS

#define directive for calling Unity Ads methods from your game code. Version 5.2 and above.

UNITY_ANALYTICS

#define directive for calling Unity Analytics methods from your game code. Version 5.2 and above.

UNITY_ASSERTIONS

#define directive for assertions control process.

Also you can compile code selectively depending on the version of the engine you are working on. Currently the supported ones are:

UNITY_2_6

Platform define for the major version of Unity 2.6.

UNITY_2_6_1

Platform define for specific version 1 from the major release 2.6.

UNITY_3_0

Platform define for the major version of Unity 3.0.

UNITY_3_0_0

Platform define for the specific version 0 of Unity 3.0.

UNITY_3_1

Platform define for major version of Unity 3.1.

UNITY_3_2

Platform define for major version of Unity 3.2.

UNITY_3_3

Platform define for major version of Unity 3.3.

UNITY_3_4

Platform define for major version of Unity 3.4.

UNITY_3_5

Platform define for major version of Unity 3.5.

UNITY_4_0

Platform define for major version of Unity 4.0.

UNITY_4_0_1

Platform define for major version of Unity 4.0.1.

UNITY_4_1

Platform define for major version of Unity 4.1.

UNITY_4_2

Platform define for major version of Unity 4.2.

Objective-C中系统宏的用法总结

先说一下本文中会提到的内容:##,__VA_ARGS__, __FILE__, __LINE__ , __FUNCTION__等 宏变量: 先举一个例子,会用到上面这些宏: #define mypri ...

Ruby操作VBA的注意事项和技巧(2):宏里调用和控制窗体以及窗体上的控件、不同workbook之间的宏互相调用

4.宏里调用并控制窗体以及窗体上的各种控件 1 Sub Criterion_Check() 2 If Workbooks.count = 0 Then '如果当前没有打开的工作薄的话需要发出警告 3 ...

[原]Unity3D深入浅出 - 常见三维软件与Unity3D的单位比例

Unity3d系统默认单位是米 Maya:Unity3D  1M:100M 3DMax:Unity3D 100M:1M Cinema 4D:Unity3D 1M:100M Lightwavew:Uni ...

iOS:PrefixHeader / 头文件 / 宏定义(18-03-02更)

宏定义,不一定放在PCH文件,可能放在一个.h文件,再用PCH包含进来. 1.屏幕尺寸 // 屏幕尺寸 #define kSCREEN_WIDTH [UIScreen mainScreen].boun ...

C++通过宏定义判断操作系统及编译器

INTRODUCTION: C++的编译环境千奇百怪,很多时候一些代码在某些编译环境下可用,一旦移到其他环境下,就会干脆Compile Error 对此,我们可以使用C++的宏定义来判断操作系统,从而 ...

linux系统编程之进程(四)

今天继续研究进程相关的东东,话不多说,进入正题: SIGCHLD: 关于它,之前章节的学习中已经用到了,具体可以参考博文:http://www.cnblogs.com/webor2006/p/3500 ...

C语言之预处理

这是2016年的最后一篇博客,年初定的计划是写12篇博客,每月一篇,1/3转载,2/3原创,看来是实现不了了! -- 题外话.今天要写的东西是C语言中的预处理器,我们常说的宏定义的用法.为什么要写这个 ...

C/C++预处理指令#define,#ifdef,#ifndef,#endif…

2016年12月29日更新: 今天查看以前文件的时候, 突然发现了#error 这个预处理指令.然后回想一下工作, 发现这个指令使用场景还是很多的.比如: 一个项目的模块儿之多,源文件之大,代码之多, ...

iOS,非视图类方法

1.判断类的实例 2.获取当前最高层Window 3.获取当前app是否活跃 4.允许所有请求 5.判断设备是否越狱 6.移除字符串换行符和空格 7.iOS注释方法或属性废弃或不可用 8.本地通讯录操 ...

随机推荐

单台机器配置redis多实例

1.增加/usr/local/redis/etc中拷贝一份配置文件重新命名为redis6483.conf 2.编辑redis6483.conf daemonize yes  //以后台进程启动 pid ...

Kooboo CMS 无聊随笔(2)

上次写了一篇博客 http://www.cnblogs.com/kmsfan/p/Kooboo_CMS_suibi.html 作为这个系列的开篇,简单的介绍了一下Kooboo CMS的一些基本情况和界 ...

LeetCode OJ 106. Construct Binary Tree from Inorder and Postorder Traversal

Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that ...

JSON.parse()和JSON.stringify()使用

JSON.parse()用于从一个字符串中解析出json对象,如 var str = '{"name":"huangxiaojian","age&qu ...

HTML中调用servlet的问题(?)

最近在学习servlet.刚开始时,按照案例一行一行的敲代码.不过,出问题了. hello1.html

...

C#和C++下数据类型对应表

/C++中的DLL函数原型为//extern "C" __declspec(dllexport) bool 方法名一(const char* 变量名1, unsigned char ...

VBS基础篇 - 循环语句(4) - For Each...Next

VBS基础篇 - 循环语句(4) - For Each...Next   For Each...Next 循环与 For...Next 循环类似.For Each...Next 不是将语句运行指定的次 ...

alpha-咸鱼冲刺day7(后续一波)-紫仪

总汇链接 一,合照 emmmmm.自然还是没有的. 二,项目燃尽图 三,项目进展 正在写登陆+注册ing 注册搞出来了!!!!!!!!QAQ(喜极而泣!!!!.jpg) 四,问题困难 数据流程大概是搞 ...

sql 查询所有表以及表结构

查询数据库中所有的表: as statu from [sysobjects] where [type] = 'u' order by [name] 查询表结构: --查询表结构 ALTER PROCE ...

volatile CAS

减少上下文切换的方法有无锁并发编程.CAS算法.使用最少线程和使用协程. 无锁并发编程.多线程竞争锁时,会引起上下文切换,所以多线程处理数据时,可以用一 些办法来避免使用锁,如将数据的ID按照Hash ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值