Why this script for changing the player position is not working?

I’m new to unity its my 4day working on it . I was following a 2D platformer tutorial I followed every step but when the player enter the portal collider it don’t teleport the player to another position like in the video it don’t do anything. Here is the code class playerDetection : MonoBehaviour {… Read More Why this script for changing the player position is not working?

'Texture2D' does not contain a definition for 'ignoreMipmapLimit' error

I just opened my unity 2d project and these 3 errors appeared, Library\PackageCache\com.unity.collab-proxy@2.0.3\Editor\PlasticSCM\UI\Images.cs(441,20): error CS1061: ‘Texture2D’ does not contain a definition for ‘ignoreMipmapLimit’ and no accessible extension method ‘ignoreMipmapLimit’ accepting a first argument of type ‘Texture2D’ could be found (are you missing a using directive or an assembly reference?) Library\PackageCache\com.unity.collab-proxy@2.0.3\Editor\PlasticSCM\UI\Images.cs(441,48): error CS1061: ‘Texture2D’ does not… Read More 'Texture2D' does not contain a definition for 'ignoreMipmapLimit' error

Unity error – "Cannot implicitly convert type 'void' to 'System.Action("

I try to add function to an action, they don’t have parametrs. I don’t understand why i can’t add function. First sctipt which creates and invokes action. using UnityEngine; using System; public class Player : MonoBehaviour { [SerializeField] private int _health; private int _currentHealth; public event Action OnHitAction; public void TakeDamage(int damage) { _currentHealth -=… Read More Unity error – "Cannot implicitly convert type 'void' to 'System.Action("