Are you trying to create an atlas at run time or load it? if your just loading it and its located in the resources folder then what you've done should work. although that will load a GameObject type you will need to do a GetComponent<UIatlas> on the loaded object.