Пример #1
0
        protected override EditorGUIElement CreateAssetInfoElement(AssetInfo info)
        {
            EditorGUIElement_Container_Flow_Line container = new EditorGUIElement_Container_Flow_Line();

            container.AddWeightedChild(0.8f, new EditorGUIElement_Button(info.GetName(), delegate() {
                info.Resolve <AudioClip>().PlaySample();
            }));

            container.AddWeightedChild(0.2f, new EditorGUIElement_Button("Select", delegate() {
                GetProperty().SetContentValues(info.Resolve <AudioClip>());
            }));

            return(container);
        }
Пример #2
0
        protected override EditorGUIElement CreateAssetInfoElement(AssetInfo info)
        {
            EditorGUIElement_Container_Flow_Line container = new EditorGUIElement_Container_Flow_Line();

            container.AddWeightedChild(1.0f, new EditorGUIElement_Button(info.GetName(), delegate() {
                GetProperty().SetContentValues(info.Resolve <TyonAsset>());
            }));

            return(container);
        }
Пример #3
0
 static public T Resolve <T>(this AssetInfo item)
 {
     return(item.Resolve().Convert <T>());
 }