Esempio n. 1
0
    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();
            }
        }
    }
Esempio n. 2
0
    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();
                }
            }
        }
    }
Esempio n. 3
0
    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();
            }
        }
    }
Esempio n. 4
0
    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();
            }
        }
    }
Esempio n. 5
0
    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();
            }
        }
    }
Esempio n. 6
0
 public PRAtlasElement(PRAtlasGenerator generator, string name)
 {
     this.generator = generator;
     this.name      = name;
 }
Esempio n. 7
0
	public PRAtlasElement(PRAtlasGenerator generator, string name)
	{
		this.generator = generator;
		this.name = name;
	}