Answers for "how to call a float from a function in another file unity"

C#
6

unity float from another script

public GameObject ScriptHolder;
public float Afloat;

//retrieve float every frame
void Update()
{
	Afloat = ScriptHolder.GetComponent<Script>().WantedFloat;
}
Posted by: Guest on January-21-2021

Code answers related to "how to call a float from a function in another file unity"

C# Answers by Framework

Browse Popular Code Answers by Language