[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart11 (1002レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
505
(1): 低クオリティでごめんねごめんね 2023/09/08(金)15:59 ID:OYwRjle1(1/2) AAS
多分読まないと思うけど
外部リンク[html]:docs.unity3d.com

Transform はComponentから
GameObjectはObjectからの継承

Component.transform
Component.gameObject
GameObject.transform

の関係かなぁ

分かりにくいけどね
んでThisは
外部リンク[html]:docs.unity3d.com

ここ読んでなんとなくわかってもらえるといいけど

// Removes this script instance from the game object
Destroy(this);

これやるとゲームオブジェクトは消去されないでscript instance
のみ消えるというから要注意
1-
あと 497 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.030s