Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Distinguish nested model prefab in regular prefab which is Instantiated with PrefabUtility

Discussion in 'Prefabs' started by i_cassell, Mar 8, 2021.

  1. i_cassell

    i_cassell

    Joined:
    Apr 6, 2019
    Posts:
    21
    The prefab layout is upload_2021-3-8_15-54-16.png .
    I instantiate "Clorisse" with PrefabUtility.InstantiatePrefab(prefabPath)as GameObject.
    I want to distinguish that which is regular or model Prefab ,can someboy tell me how ?
    I use PrefabUtility.GetPrefabAssetType but it return regular for the mode prefab .
     

    Attached Files:

  2. i_cassell

    i_cassell

    Joined:
    Apr 6, 2019
    Posts:
    21
    "model" misspell.