Question by
saibov · Jan 20, 2021 at 07:57 PM ·
animationeditoreditorguistate machine
not showing onPreviewGUI in StateMachineBehaviour Editor
i have a Editor script:
public class c1 : StateMachineBehaviour
{
}
and editor:
[CustomEditor(typeof(c1))]
public class c1_Editor : Editor
{
public override bool HasPreviewGUI()
{
return true;
}
}
If you execute public override bool HasPreviewGUI () in the editor for MonoBehaviour a preview window appears in the inspector, but for the stateMachineBehaviour behavior does not work. help please get the preview window in the stateMachineBehaviour
безымянныи.png
(17.7 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613023657im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do you make the animation window record list type variables? 0 Answers
How to draw a model in the preview window of my custom editor using OnPreviewGUI? 0 Answers
Disable automatic anim "Loop Time" check box 1 Answer
How to change the text of EditorGUILayout.TextField 2 Answers
Get Animation in the Editor 1 Answer