Relative Content

Tag Archive for unity-game-engineunityscript

Enemy prefabs not damaging the Player

The enemy itself damages the player just fine but whenever my enemy spawner spawns an enemy prefab it does not damage the player at it gives this error:

How to make an Array of Texts read from a String

I’m trying to create a quiz game, exactly like how Jeopardy works. Right now, I’m attempting to make text objects from the top row each display a different item from a String, which lists all the categories, which if I can do that, it would help give an idea with the next step, getting text from a prefab to show a set question and answer based on which button the player chooses.

Unity keep non Mono Behaviour inspector values

I’m working with Unity and have encountered an issue related to serialized non-MonoBehaviour classes. Specifically, I have a PlayerController class that derives from MonoBehaviour and contains a public field of type GroundDetection. The GroundDetection class does not derive from MonoBehaviour and is serialized in the Unity Inspector.

Forward and Backward movement Visual Scripting not working together

I have an issue while working with visual scripts, I’m learning it and new to it so when I created the forward and backward movement in the visual scripts it is working separately but not together as it keeps throwing the message that the value of has to be assigned and cannot be set dynamically

Camera Won’t Shake When Enemy Attacked

I want my camera shake when isDamaging = true at EnemyDamage script but It wont happent
I dont even get why theres a problem with that stuff it doesnt make sense its looking like %100 true
when I printed the isDamaing its also says it =true but dont work