Beispiel #1
0
 internal SubassetPopup(int selIndex, string[] objNames, List <Object> subAssets, SerializedProperty property, AssetReferenceDrawer drawer)
 {
     SelectedIndex = selIndex;
     m_objNames    = objNames;
     m_property    = property;
     m_drawer      = drawer;
     m_subAssets   = subAssets;
 }
Beispiel #2
0
 internal AssetReferencePopup(AssetReferenceDrawer drawer, string guid, string nonAddressedAsset)
 {
     m_Drawer            = drawer;
     m_GUID              = guid;
     m_NonAddressedAsset = nonAddressedAsset;
     m_SearchField       = new SearchField();
     m_ShouldClose       = false;
 }
 internal AssetReferencePopup(AssetReferenceDrawer drawer, string guid, string nonAddressedAsset, bool openedByEnterKey)
 {
     m_Drawer            = drawer;
     m_GUID              = guid;
     m_NonAddressedAsset = nonAddressedAsset;
     m_SearchField       = new SearchField();
     m_ShouldClose       = false;
     m_OpenedByEnterKey  = openedByEnterKey;
 }
Beispiel #4
0
 public AssetReferenceTreeView(TreeViewState state, AssetReferenceDrawer drawer, AssetReferencePopup popup, string guid, string nonAddressedAsset)
     : base(state)
 {
     m_Drawer   = drawer;
     m_Popup    = popup;
     showBorder = true;
     showAlternatingRowBackgrounds = true;
     m_GUID = guid;
     m_NonAddressedAsset = nonAddressedAsset;
     m_WarningIcon       = EditorGUIUtility.FindTexture("console.warnicon");
 }