First Person Starter couldn't work on WebGL.

Hi,
I’m trying to run the First Person Starter on WebGL and it can’t move using the WSAD+mouse input like in the PC/Mac/Linux build. It said this:

This is the faulty line:

        private void Start()
        {
            _controller = GetComponent<CharacterController>();
            _input = GetComponent<StarterAssetsInputs>();
#if ENABLE_INPUT_SYSTEM && STARTER_ASSETS_PACKAGES_CHECKED
            _playerInput = GetComponent<PlayerInput>();
#else
            Debug.LogError( "Starter Assets package is missing dependencies. Please use Tools/Starter Assets/Reinstall Dependencies to fix it");
#endif

            // reset our timeouts on start
            _jumpTimeoutDelta = JumpTimeout;
            _fallTimeoutDelta = FallTimeout;
        }

Does anybody have any idea how to fix this? Thanks.

Hi,
So after browsing some more, I found out that we should also install the Starter Assets - First Person Character Controller from the Asset Store. It is working now. Thanks.

1 Like