Description
I was trying to store some hash values in variables at the top of my script to reuse further down in the script. I was going to set one of these as the default in the go.property function, but this issue came up. I ended up changing my code, so I don’t actually do this any more, but I thought I should make you aware of it.
Steps to reproduce
- Create a variable containing a hashed value e.g.
local hashedVal = hash("value")
- Store that value in a property using the go.property(name, value) function. e.g.
go.property("aHashedValue", hashedVal)
Expected result
Code functions as expected
Actual Result
The following error is thrown:
Only these types are available: number, hash, msg.url, vmath.vector3, vmath.vector4, vmath.quat
Other notes
Using the function while creating the hash function in the declaration works as expected. e.g.
go.property("aHashedValue", hash("value"))
Defold version: 1.2.82
OS: Windows 10