Jump to content
  • Advertisement
Sign in to follow this  

varible names during construction

This topic is 4893 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there an easy way to get variable names during construction? So that in my construction behavior I can have access to the string name of the variable being created in the AS script? ~Scott

Share this post

Link to post
Share on other sites
I'm not exactly sure that I understand what you really want.

But here's what I think. Let's say you have a script like this:

void test()
Object myObject();

You want to be able to access the name of the variable myObject, from within the constructor? Is that it?

Well, currently AngelScript doesn't store the variable names for local variables, only for global variables. But I have plans to improve the debugging capabilities for AngelScript by allowing the application to query variables, including name, type, scope, and value. Once that is implemented you should be able to access the variable name from within the constructor.


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!