we Instantiate two spine GameObject the some.
but they share one AtlasAsset . one Atlas.
code:
public Atlas GetAtlas () {
if (atlasFile == null) {
Debug.LogError("Atlas file not set for atlas asset: " + name, this);
Reset();
return null;
}
if (materials == null || materials.Length == 0) {
Debug.LogError("Materials not set for atlas asset: " + name, this);
Reset();
return null;
}
if (atlas != null)
return atlas;
try {
atlas = new Atlas(new StringReader(atlasFile.text), "", new MaterialsTextureLoader(this));
atlas.FlipV();
}
I want dont share AtlasAsset , dont share Atlas in some spine GameObject.
how to do?