Is it possible to instantiate a struct from other members? #2583
Replies: 1 comment
-
|
No, you can create local variables that are not placed, but assigning to them can be done for example by having a function that returns the type so you can assign it.That works in theory but in practice there are some problems with local function custom types and doesn't always work as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here's what I'm trying to do:
I can't figure out how to create a Rect object from previously defined items. Is this even possible? Or do structs only work on file read operations
Beta Was this translation helpful? Give feedback.
All reactions