Passing parameters to overloaded constructor
How would I pass the texture2D variable to be handled in the second constructor. Obviously return does not work but that is what I would do if it is was an overloaded function and not a constructor.

5 Replies
public Sprite(...) : this(...)
but that wouldn't allow me to pass the new texture2d variable?
sure it would.
public Sprite(string texture, ...) : this(Assets.Textures[texture], ...) {}
oh
yea that did the trick, thanks!
no problem