playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Register on the forums to download actions, updates, etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?[SOLVED] (Read 730 times)
nRedux
Playmaker Newbie
Posts: 3
PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?[SOLVED]
«
on:
July 06, 2020, 09:03:32 PM »
I've been trying to use these returned objects as keys/IDs for something and so far it seems like they must be returned copies of the actual variable objects? They fail comparison tests (direct reference == and Object.equals). Can you shed some light on the internals?
«
Last Edit: July 07, 2020, 02:10:41 AM by jeanfabre
»
Logged
nRedux
Playmaker Newbie
Posts: 3
Re: PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?
«
Reply #1 on:
July 06, 2020, 09:08:59 PM »
I take it back, there was an issue with what object was being assigned to the variable I was later performing the comparison on.
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?
«
Reply #2 on:
July 07, 2020, 02:10:28 AM »
Hi,
good that you sorted it out. So to be clear, it doesn't return a copy, it returns the pointer to the variable so you can query it anytime after and you will get the latest value and details about that variable.
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
PlayMakerFSM.FsmVariables.FindVariable() - does it return a copy?[SOLVED]