言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

PrefabUtility.GetPrefabType

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static function GetPrefabType(target: Object): PrefabType;
public static PrefabType GetPrefabType(Object target);
public static def GetPrefabType(target as Object) as PrefabType

Description

オブジェクトが与えらると、そのプレハブのtypeを返します(プレハブでない場合は何も返しません)。

See Also: PrefabTypeは可能な戻り値の情報について列挙します。