Closed JanSharp closed 2 years ago
Me too.
Btw , ((UdonBehaviour) GetComponent(typeof(UdonBehaviour))).InteractionText
can do it. but not sure wich one in the multiple components is correct
The InteractionText property is supported on U# behaviours in 1.0.
InteractionText
does not appear to be available onUdonSharpBehaviour
. You can, however, get/set it on anUdonBehaviour
instance and it compiles and works as expected (as in reading the right value and displaing the given value).I'd have expected
InteractionText
to be onUdonSharpBehaviour
, however I would not be surprised if you had to get theUdonBehaviour
ofthis
to get access to it, but if that's the case, well, I don't know how to get saidUdonBehaviour
outside of usingGetComponent
which is not only cumbersome and has the issue with multipleUdonBehaviours
on one GameObject (well, maybe. Not sure how InteractionText is implemented in this regard but it's besides the point). Plus it would be weird if that was the intentional way to get/setInteractionText
onthis
.Ultimately I'm asking if I'm missing something or if
InteractionText
was simply missed and should be added toUdonSharpBehaviour
.