|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void OnImageCaptured(int frame, NativeArray<Color32> data, RenderTexture renderTexture) |
|
|
|
void OnImageCaptured(int frameCount, NativeArray<Color32> data, RenderTexture renderTexture) |
|
|
|
if (!m_AsyncAnnotations.ContainsKey(frameCount)) |
|
|
|
return; |
|
|
|
|
|
|
|
m_InstancePath = $"{k_Directory}/{k_FilePrefix}{frame}.png"; |
|
|
|
var localPath = $"{Manager.Instance.GetDirectoryFor(k_Directory)}/{k_FilePrefix}{frame}.png"; |
|
|
|
m_InstancePath = $"{k_Directory}/{k_FilePrefix}{frameCount}.png"; |
|
|
|
var localPath = $"{Manager.Instance.GetDirectoryFor(k_Directory)}/{k_FilePrefix}{frameCount}.png"; |
|
|
|
|
|
|
|
var colors = new NativeArray<Color32>(data, Allocator.TempJob); |
|
|
|
|
|
|
|