vimeo / vimeo-unity-sdk

Easily stream your Vimeo videos into Unity or record and publish out to Vimeo.
MIT License
211 stars 49 forks source link

VimeoBuildProcessor does not work with inactive GameObjects #108

Open Chris234k opened 4 years ago

Chris234k commented 4 years ago

public void EnableBuildMode(GameObject[] objects) uses GetComponentsInChildren<VimeoSettings>() which by default ignores inactive GameObjects. See Unity Documentation

The line should be GetComponentsInChildren<VimeoSettings>(true)

This was preventing my disabled GameObject from properly transferring the token into a build!

markgrossnickle commented 1 month ago

Also doesn't work if your player isn't in the scene. We spin up prefabs for our UI as needed and VimeoBuildProcesser only checks scenes as far as I can tell.