Created
April 25, 2018 14:49
-
-
Save tsubaki/a8cb30c2a3548e1f79cf8b7aea07b48c to your computer and use it in GitHub Desktop.
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
NativeArray<int> array; | |
void OnEnable() | |
{ | |
NativeArray<int> array = new NativeArray<int>(1, Allocator.Persistent); | |
//NativeArray<int> array = new NativeArray<int>(1, Allocator.Temp); // 1F以上生きるならTempは使えない | |
} | |
void OnDisable() | |
{ | |
array.Dispose(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment