Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

AllocatorManager.AllocatorHandle.Version

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public ushort Version;

Description

This allocator's version number.

An allocator function is uniquely identified by its "combination" of AllocatorManager.AllocatorHandle.Index and AllocatorManager.AllocatorHandle.Version together: each index has a version number that starts at 0; the version number is incremented each time the allocator is invalidated. Only the lower 15 bits of Version is in use because when allocator version is larger than 0x7FFF, allocator.ToAllocator returns a negative value which causes problem when comparing to Allocator.None.