Forum Discussion
naam00
12 years agoHonored Guest
Attach To Camera help
Hey Guys, Since the forum doesn't allow me to search for the string AttachGameObjectToCamera (I guess it's too long?), I suspect this may have been answered elsewhere, but other queries lead to not...
drash
12 years agoHeroic Explorer
In your call to a function/method with a ref parameter, you'll have to explicitly put "ref" before your argument. I'm guessing that's the issue you ran into.
Like this:
Like this:
if(AttachGameObjectToCamera(ref yourGameObject))
{
//Attach was successful
}
else
{
//Attach failed
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 7 months ago
- 3 years ago