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 ?
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
Post a Comment