Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question PlayerInputManager: UpdateSplitScreen() is Called Before Cameras Are Set Up

Discussion in 'Input System' started by Pinir, Dec 2, 2022.

  1. Pinir

    Pinir

    Joined:
    Feb 9, 2020
    Posts:
    1
    With my current project I can set up the camera components for player prefabs only after they have already been instantiated; however UpdateSplitScreen() in the PlayerInputManager is called too early when a player joins and the player Camera components are null at that time, so splitscreen does not take effect. Is there a way to stop UpdateSplitScreen from triggering at the time of joining and possibly call it manually once cameras have been set up on the player instances?