c# - Targets variable as public not defined in CameraControl.cs -


i need (which done in red) ,but there no targets variable following unity tanks tutorial controlling camera movement. near end of tutorial asks drop tank gameobject onto public variable 'targets' of camera control script, on dropdown menu of camera control script in unity there no 'targets'. can see tutorial video should be, it's not there on computer. tried make public gameobject targets; , dropped tank on didn't work. please tell me should ?

enter image description here

did copy , paste finished code?

because right after says drop tank, going add hideininspector attribute, which, name suggest, hides field in inspector.

i didnt watch full video, read transcript, should if remove [hideininspector] target field.

the line in question

[hideininspector] public transform[] m_targets; // targets camera needs encompass. 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -