Get the main camera following target GameObject (an invisible GameObject) to use it to control the position of the main camera with the default camera controller.
In 3D mode, the default camera controller behaves as third-person camera controller, and the center to follow is the following target GameObject. Also, Unity Academy will automatically set the rotation of this "following target" to the same rotation as the current main camera's rotation to let you get the main camera's rotation.
In 2D mode, the default camera controller will follow the target GameObject to move, along with a position delta value that you can adjust with the arrow keys on your keyboard.
The main camera following target GameObject is a primitive GameObject. This means that you are not allowed to destroy it and/or instantiate it during runtime. Multiple calls to this function will return GameObject identifiers that refer to the same primitive GameObject.
If default main camera controllers are disabled (you have called request_for_main_camera_control), then the following target GameObject is useless.
Returns GameObjectIdentifier
The GameObject idenfitier for the main camera following target GameObject.
Get the main camera following target GameObject (an invisible GameObject) to use it to control the position of the main camera with the default camera controller.
The main camera following target GameObject is a primitive GameObject. This means that you are not allowed to destroy it and/or instantiate it during runtime. Multiple calls to this function will return GameObject identifiers that refer to the same primitive GameObject.
If default main camera controllers are disabled (you have called
request_for_main_camera_control
), then the following target GameObject is useless.