- 只能用于非托管对象
- 该数组不会检查越界,使用时需要记录数组的大小
- 数组不使用之后需要调用Delete方法释放内存
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
有时候通过从Windows电脑打包的Xcode工程构建iOS包的时候,会提示 MapFileParser.sh: Permission denied
之类的报错,导致打包失败。
- 在 BuildTarget - BuildPhrases - Run Script 的 Shell 中第一行添加:
chmod +x "$PROJECT_DIR/MapFileParser.sh"
- 修改过后的Shell样本在
example.sh
中
- Mac默认会禁止非本机创建的shell文件的运行权限,因此xcode在试图调用这个shell时会被拒绝,添加这行代码会给予
MapFileParser.sh
文件可执行权限
MapFileParser.sh
文件在后续的Unity版本中移除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <summary> | |
/// 单例 | |
/// </summary> | |
/// <typeparam name="T">类型</typeparam> | |
public class MonoBehaviourSingleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
protected static T instance; | |
public static T Instance => instance; |
-
filePath:分享图片的本地路径
-
URL:用户点击分享内容时跳转的页面
-
需要为iPad单独设置分享界面的弹窗位置以及大小,否则出错
NewerOlder