playMaker

Author Topic: Error Get PlayableDirector State  (Read 694 times)

Felink

  • Playmaker Newbie
  • *
  • Posts: 3
Error Get PlayableDirector State
« on: November 03, 2022, 03:22:17 PM »
Hi, I'm trying to detect when the timeline is over. Am I trying via PlayableDirector/State but I receive this error, possible solutions or alternatives? 1.9.5 unity 2022.2.0b10



System.ArgumentException: Field targetProperty defined on type HutongGames.PlayMaker.Actions.GetProperty is not a field on the target object which is of type HutongGames.PlayMaker.FsmProperty.
Parameter name: obj
  at System.Reflection.RuntimeFieldInfo.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) [0x00045] in <7ab397abd13b41e3ad74fc63bc0bd4a1>:0
  at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00009] in <7ab397abd13b41e3ad74fc63bc0bd4a1>:0
  at HutongGames.PlayMakerEditor.ActionEditor.DoVariableSelector (UnityEngine.GUIContent label, HutongGames.PlayMaker.Fsm fsm, HutongGames.PlayMaker.VariableType variableType, HutongGames.PlayMaker.NamedVariable selected, HutongGames.PlayMaker.VariableType typeConstraint, System.Type objectConstraint) [0x0003e] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\ActionEditor.cs:2856
  at HutongGames.PlayMakerEditor.VariableEditor.DoFsmEnumPopup (UnityEngine.GUIContent label, HutongGames.PlayMaker.Fsm fsm, HutongGames.PlayMaker.FsmEnum fsmEnum, System.Type objectType) [0x00000] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\VariableEditor.cs:1114
  at HutongGames.PlayMakerEditor.VariableEditor.FsmEnumPopup (UnityEngine.GUIContent label, HutongGames.PlayMaker.Fsm fsm, HutongGames.PlayMaker.FsmEnum fsmEnum, System.Type objectType) [0x0000b] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\VariableEditor.cs:1122
  at HutongGames.PlayMakerEditor.ActionEditor.EditFsmProperty (System.Object fieldValue, System.Object[] attributes) [0x008c0] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\ActionEditor.cs:1733
  at HutongGames.PlayMakerEditor.ActionEditor.GUIForFieldTypes (System.String labelText, System.Type type, System.Object fieldValue, System.Object[] attributes) [0x00611] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\ActionEditor.cs:1121
  at HutongGames.PlayMakerEditor.ActionEditor.EditField (System.Object obj, System.Reflection.FieldInfo field, System.String labelText, System.Type fieldType, System.Object fieldValue, System.Object[] attributes) [0x0000c] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Editor\Classes\ActionEditor.cs:617

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Error Get PlayableDirector State
« Reply #1 on: November 05, 2022, 12:45:14 AM »
Hi.
Probably the best way would be to make a custom action.

This tutorial might help :