I am trying to get a reference for the transform of a sprite but I have a yellow line under
Transform transform; When I click on view problem unity gives me this ‘PlayerControl.transform’ hides inherited member ‘Component.transform’. Use the new keyword if hiding was intended. [Assembly-CSharp]csharp(CS0108). I was wondering if anyone could give me an explanation of this error or how to fix it. Thank you
//This is my code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class PlayerControl : MonoBehaviour
{
Transform transform;
void Start()
{
}
void Update()
{
}
void OnMove(InputValue value)
{
print(“hi”);
}
}