Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity float from another script

public GameObject ScriptHolder;
public float Afloat;

//retrieve float every frame
void Update()
{
	Afloat = ScriptHolder.GetComponent<Script>().WantedFloat;
}
 
PREVIOUS NEXT
Tagged: #unity #float #script
ADD COMMENT
Topic
Name
2+2 =