decentraland / unity-renderer

Unity implementation of Decentraland Client
https://play.decentraland.org
Apache License 2.0
136 stars 94 forks source link

When we use the utils library, movePlayerTo no longer works #6211

Open aminekha opened 1 month ago

aminekha commented 1 month ago

Issue Description:

movePlayerTo no longer works when I use a function from "@dcl/ecs-scene-utils"

Steps to reproduce:

  1. Import something from @dcl/ecs-scene-utils and use it in your code
  2. Try using movePlayerTo() and you will get: Error: TypeError: Cannot read properties of null (reading 'movePlayerTo')
  3. Remove the utils library and its call from the code and then movePlayerTo will work

Expected behaviour:

movePlayerTo should teleport the user to another room.

Current behaviour:

Getting an error: Error: TypeError: Cannot read properties of null (reading 'movePlayerTo')

Severity:

Priority:

Platforms:

Browser:

Environment:

Evidence:

image

Additional Notes: