public Texture FindTexture(string name) { if (TextureLibrary != null) { Texture texture = TextureLibrary.FindTexture(name); if (texture != null) { return(texture); } } if (additionalLibrary != null) { return(additionalLibrary.FindTexture(name)); } return(null); }