playMaker

Author Topic: Scripts not loaded in build[SOLVED]  (Read 1306 times)

Hannes

  • Playmaker Newbie
  • *
  • Posts: 6
Scripts not loaded in build[SOLVED]
« on: January 21, 2019, 05:22:28 AM »
Hi,

I have a problem that seems to occur after updating to unity 2018.3 (from 2017.2) I have a couple Playmaker Scripts in a prefab. In the preview (editor) everything works fine. In the build (windows) the playmaker script is not loaded, in the output log I get several of theses errors
(Filename: Line: -1)

TypeLoadException: A type load exception has occurred.

Rethrow as TypeInitializationException: An exception was thrown by the type initializer for HutongGames.PlayMaker.Fsm

To make it a little clearer: The prefab containing the fsm is called on start of the game. The prefab itself (a hand model) is loaded and working properly. An object that is part of the hierarchy of the prefab contains a fsm. That fsm is not loaded. The fsm itself is only communicating with objects that are contained in the prefab, no variables or arrays are used.

Any idea?
« Last Edit: January 22, 2019, 03:20:11 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Scripts not loaded in build
« Reply #1 on: January 21, 2019, 10:40:01 AM »
Are you using the latest version of PlayMaker (1.9.0.p6)?

Hannes

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Scripts not loaded in build
« Reply #2 on: January 21, 2019, 04:50:45 PM »
Yes.

Hannes

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Scripts not loaded in build
« Reply #3 on: January 21, 2019, 05:52:57 PM »
Allright, importing through the screen inside unity rather than via the store did it for me. Thanks!