Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question EndLayoutGroup: BeginLayoutGroup must be called first. UnityEngine.GUIUtility:ProcessEvent(Int32, In

Discussion in 'Immediate Mode GUI (IMGUI)' started by kamilkaczmarek663, Oct 20, 2020.

  1. kamilkaczmarek663

    kamilkaczmarek663

    Joined:
    Oct 20, 2020
    Posts:
    1
    Well, I'm new to this. But I scripted in Microsoft Visual Studio,
    and when I saved in unity, I had a problem "EndLayoutGroup: BeginLayoutGroup must be called first.
    UnityEngine.GUIUtility: ProcessEvent (Int32, IntPtr) "

    I've been looking for help on other posts, but couldn't find


    Please help :(




    using System.Collections;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using UnityEngine;


    public class PlayerMovement : MonoBehaviour
    {
    public CharacterController controller;

    public float speed = 12f;


    // Update is called once per frame
    void Update()
    {
    float x = Input.GetAxis("Horizontal");
    float z = Input.GetAxis("Vertical");

    Vector3 move = transform.right * x + transform.forward * z;

    controller.Move(move * speed * Time.deltaTime);


    }

    }