How Can I Pass Parameters When Registering a Node? #700
Answered
by
HenrikNilssonCode
sweaterlog
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
HenrikNilssonCode
Jan 8, 2024
Replies: 1 comment
-
You can include your additional parameters as additional arguments to
You can also do it by way of an initializer function. Note that when passing references you have to explicitly call This is all explained in Tutorial T08 (Tutorial file). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
facontidavide
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can include your additional parameters as additional arguments to
factory.registerNodeType
, for example:You can also do it by way of an initializer function. Note that when passing references you have to explicitly call
std::ref
.This is all explained in Tutorial T08 (Tutorial file).