ScrollObject::GetName acting weird

Hey Iarwain, I'm trying to get the name of a scroll object - in this case, my menu object. If I use
[code]
std::string(orxObject_GetName(this->GetOrxObject))
[/code
everything works fine. Butif I try to use this->GetObject, the name instead of being "Menu" comes out RT0006. Why is that happening?

Comments

  • edited October 2012
    The ScrollObject::GetName() method gived you the unique name of the ScrollObject.
    From that name you can infer if it's an object created by the editor or in-game during runtime.

    If you want the section name that is bound to that ScrollObject, the method is GetModelName() instead.
  • edited October 2012
    Awesome. Thanks for that.
Sign In or Register to comment.