Answers for "get float from other script 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 "get float from other script unity"

C# Answers by Framework

Browse Popular Code Answers by Language