public void GenerateAtlases() { if (_activeGenerator == null) { if (_atlasLinksToGenerate.Count > 0) { PRAtlasLink link = _atlasLinksToGenerate[0]; //create a generator _activeGenerator = new PRAtlasGenerator(link); _atlasLinksToGenerate.RemoveAt(0); AdvanceActiveGenerator(); } } }
private void AdvanceActiveGenerator() { if (_activeGenerator != null) { if (_activeGenerator.Advance()) { _progressMessage = _activeGenerator.progressMessage; } else { _activeGenerator = null; GenerateAtlases(); if (_activeGenerator == null) //if it's null, we just built the last atlas we had to generate! { Debug.Log("Packrat: Refreshing Asset Database"); AssetDatabase.Refresh(); } } } }
private void AdvanceActiveGenerator() { if (_activeGenerator != null) { if (_activeGenerator.Advance()) { _progressMessage = _activeGenerator.progressMessage; Repaint(); //this will cause the progress message to be shown in the GUI } else { _activeGenerator = null; GenerateAtlases(); if (_activeGenerator == null) //if it's null, we just built the last atlas we had to generate! { Debug.Log("Packrat: Refreshing Asset Database"); AssetDatabase.Refresh(); } Repaint(); } } }
private void AdvanceActiveGenerator() { if(_activeGenerator != null) { if(_activeGenerator.Advance()) { _progressMessage = _activeGenerator.progressMessage; Repaint(); //this will cause the progress message to be shown in the GUI } else { _activeGenerator = null; GenerateAtlases(); if(_activeGenerator == null) //if it's null, we just built the last atlas we had to generate! { Debug.Log("Packrat: Refresh Asset Database"); AssetDatabase.Refresh(); } Repaint(); } } }
public void GenerateAtlases() { if(_activeGenerator == null) { if(_atlasLinksToGenerate.Count > 0) { PRAtlasLink link = _atlasLinksToGenerate[0]; //create a generator _activeGenerator = new PRAtlasGenerator(link); _atlasLinksToGenerate.RemoveAt(0); AdvanceActiveGenerator(); } } }
public PRAtlasElement(PRAtlasGenerator generator, string name) { this.generator = generator; this.name = name; }