Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }