Hello,
I analyse that property with Reflector.
It's part of GraphicsResource Class (Texture inherit from Graphics Resource)
Unless I miss something, the get part of Name is not use within the XNA Framework.
The 'set' part is in few constructor for others GraphicsResource classes (like VertexDeclaration,BlendState,SamplerState) giving name like
| VertexDeclaration = new VertexDeclaration(elements) { Name = "VertexPositionColor.VertexDeclaration" }; |
| |
But Texture never set that property. So you may be set it yourself.
| this.texture = Content.Load<Texture2D>("Koala"); |
| this.texture.Name = "Koala"; |
Hope that will help you.