Search Unity

Question Fixed joints wont work in WebGL instead i get this warning...

Discussion in 'Visual Scripting' started by kiddvmn, Oct 1, 2023.

  1. kiddvmn

    kiddvmn

    Joined:
    Jul 30, 2013
    Posts:
    2
    Hello. I made a game where you shoot enemies attacking your castle with three archers. Im using Fixed joints (i had problems using parents so i used this approach) to attach arrows to body parts of enemies which works great in editor and Windows build but in WebGL these arrows are just sliding around enemies, wont attach on them and continue sliding on the ground.

    This is warning im getting in browser while playing game:
    These are nodes im using:
     
    Last edited: Oct 1, 2023
  2. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    398
    It's returning a Component. Use GetComponent on the output to get the FixedJoint, or just the .gameobject might work.