+ 3
How to add Game movement in C# please
Keyboard input for Unity Editior or something...
5 Respuestas
+ 5
VincentDV example:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MYCLASS : MonoBehaviour{
public Rigidbody rigidbody;
}
void start(){
}
//update is called once per frame
void FixedUpdate(){
//command creation
if (Input.GetKey("A")){
rigidbody.AddForce(0,0,100 * Time.deltaTime);
}
}
+ 5
VincentDV
keyboard input in C# for unity (API)
https://docs.unity3d.com/ScriptReference/Input.html
UNITY TUTORIALS
https://learn.unity.com/tutorials
keyboard input in C#
https://www.sololearn.com/learn/CSharp/2585/
I hope I was helpful
+ 4
VincentDV
try to assign a event (example: A key down) to a function (example addforce() )
+ 3
Thanks for your help
+ 2
Alessio I mean game movement...