Post

Code Monkey
Code Monkey@UnityCodeMonkey·
Does this code compile? private void SetTarget(Transform target) { GameObject targetGameObject = target; } A) No B) Yes C) Yes if target is not null (answer in reply below)
English
5
0
15
6.9K
Code Monkey
Code Monkey@UnityCodeMonkey·
#### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### #### ANSWER #### (A) You cannot implicitly convert a transform into a gameobject. However every gameObject has a transform and every transform has a gameObject so this would work: GameObject targetGameObject = target.gameObject; What is the DIFFERENCE between Transform and GameObject? youtube.com/watch?v=B-dVf9…
YouTube video
YouTube
English
1
0
8
2K
MegaPunk Games
MegaPunk Games@MegaPunkGames·
@UnityCodeMonkey Am I supposed to know all the APIs in the world? Nothing even guarantees this is Unity or even C#, this is dumb!
English
1
0
0
176
Supermicro
Supermicro@Supermicro·
Accelerate deployment with Supermicro Global Services. From data center design and solution validation to on-site deployment and ongoing support, integrated services help reduce time-to-online, improve installation quality, and support mission-critical uptime.
English
16
42
515
5.4M
Paylaş