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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

StateMachineBehaviors Not Working in WebGL build

Discussion in 'Editor & General Support' started by jjlebow, Jun 18, 2020.

  1. jjlebow

    jjlebow

    Joined:
    Nov 8, 2019
    Posts:
    2
    Fairly new Unity programmer here, I am using state machine behavior scripts in order to run certain code and change up certain variables, and all of this seems to work fine when I run my game in the editor. However when I build my game, none of the state machine behavior scripts seem to work anymore. I found an old thread from 5 years ago that recommended disabling code stripping, and I tried that but unfortunately no luck. Any insight would be very helpful! Currently using version 2019.2.10f1
     
    Last edited: Jun 18, 2020
    PhilloAssetStore likes this.
  2. PhilloAssetStore

    PhilloAssetStore

    Joined:
    Sep 27, 2018
    Posts:
    1
    Hi.
    I'm using Unity 2022.1.1f1 and am having the same problem.