Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Unregister function?

  • You cannot reply to this topic
2 replies to this topic

#1 Wipe   Members   -  Reputation: 245

Like
0Likes
Like

Posted 08 June 2014 - 06:27 AM

Is there a way to get rid of function added via asIScriptEngine::RegisterGlobalFunction()? I fail to find anything like that in docs or tests.

 



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3239

Like
1Likes
Like

Posted 08 June 2014 - 09:57 AM

You can use configuration groups for this. When registering the functions that needs to be removed later, you should do so in a configuration group. The entire configuration group can then be removed dynamically.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Wipe   Members   -  Reputation: 245

Like
0Likes
Like

Posted 08 June 2014 - 08:40 PM

Thanks, definitely will be useful smile.png





PARTNERS