|
|
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using UnityEditorInternal; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Perception.GroundTruth; |
|
|
|
|
|
|
PerceptionCamera perceptionCamera => ((PerceptionCamera)this.target); |
|
|
|
|
|
|
|
string m_PreviousOutputDir; |
|
|
|
bool showPatchChangedLabel = false; |
|
|
|
bool m_ShowPatchChangedLabel; |
|
|
|
|
|
|
|
public void OnEnable() |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
Debug.Log($"Chose path: {path}"); |
|
|
|
PlayerPrefs.SetString(SimulationState.userBaseDirectoryKey, path); |
|
|
|
showPatchChangedLabel = true; |
|
|
|
m_ShowPatchChangedLabel = true; |
|
|
|
if (showPatchChangedLabel) |
|
|
|
if (m_ShowPatchChangedLabel) |
|
|
|
{ |
|
|
|
if (m_PreviousOutputDir == dir) |
|
|
|
{ |
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
showPatchChangedLabel = false; |
|
|
|
m_ShowPatchChangedLabel = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|