Search found 3 matches
- Sun Jul 23, 2023 3:40 am
- Forum: Request Help
- Topic: Using strings as to reference variables
- Replies: 11
- Views: 5501
Re: Using strings as to reference variables
What are you attempting to do in the script? GdScript? var v1 = "v2" var v2 some how use v1 to refrence v2 Some folks have mentioned dictionaries and `get` already, but I'd like to take a different approach to help you. If you're trying to store the name of the second variable in the firs...
- Tue Jul 18, 2023 10:41 pm
- Forum: Request Help
- Topic: Using strings as to reference variables
- Replies: 11
- Views: 5501
Re: Using strings as to reference variables
var v1 = "v2"stayathomedev wrote: ↑Tue Jul 18, 2023 2:37 am What are you attempting to do in the script? GdScript?
var v2
some how use v1 to refrence v2
- Mon Jul 17, 2023 11:31 pm
- Forum: Request Help
- Topic: Using strings as to reference variables
- Replies: 11
- Views: 5501