Unity's bundled script editors MonoDevelop-Unity (OSX, WIN) The leading Unity IDE editor for Mac, Windows. MonoDevelop-Unity is a fork of MonoDevelop with added Unity-specific features. Unitron (OSX) Unitron was previously the official script editor bundled with Unity; it is no longer in active development, in lieu of MonoDevelop-Unity. I am using the Unity 2017.3.0f3 Personal (64) bit editor for Pc, Mac and Linux Standalone (DX11 on DX10 GPU). I was editing my terrain when suddenly my camera for moving around in the editor went absolute wack. Simply click the start button in Visual Studio for Mac to attach the debugger to the Unity Editor. Even faster, press ⌘ Command + Enter. You can put breakpoints and step through your scripts. Once Visual Studio for Mac is set as the external script editor for Unity, opening any script from the Unity editor will automatically launch or switch to Visual Studio for Mac, with the chosen script open.
Active1 year, 4 months ago
I have pressed something on Mac OS, and now I can't put all windows together (docking). In Windows OS we simply drag another window to tabs space and we have 2 tabs. In Mac OS we can't do it. Is there any reset in Unity?
Programmer83.4k1212 gold badges113113 silver badges182182 bronze badges
OleksandrOleksandr50911 gold badge55 silver badges2121 bronze badges
1 Answer
It seems like you locked it. If the Inspector tab is not showing the latest object you select then unlock it by clicking on the padlock icon:
Is there any reset in Unity?
To reset the Editor layout, click on the Default dropdown button then select the Default option. It should reset the Editor layout to the default layout mode.
If this doesn't work, click on the Default dropdown button then click on 'Revert Factory Settings..' to restore it to its factory settings.
ProgrammerProgrammer83.4k1212 gold badges113113 silver badges182182 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged macosunity3d or ask your own question.
-->Questa sezione illustra come usare le funzionalità per l'integrazione e la produttività di Visual Studio per Mac Tools per Unity e come usare il debugger di Visual Studio per Mac per lo sviluppo di Unity.In this section, you'll learn how to use Visual Studio for Mac Tools for Unity's integration and productivity features, and how to use the Visual Studio for Mac debugger for Unity development.
Apertura di script Unity in Visual Studio per MacOpening Unity scripts in Visual Studio for Mac
Dopo che Visual Studio per Mac è impostato come editor di script esterno per Unity, l'apertura di qualsiasi script dall'editor di Unity causa automaticamente l'avvio o il passaggio a Visual Studio per Mac, dove viene aperto lo script scelto.Once Visual Studio for Mac is set as the external script editor for Unity, opening any script from the Unity editor will automatically launch or switch to Visual Studio for Mac, with the chosen script open.
In alternativa, Visual Studio per Mac può essere aperto senza aprire alcuno script nell'editor standard selezionando Open C# Project (Apri progetto C#) dal menu Assets in Unity.Alternatively, Visual Studio for Mac can be opened with no script open in the source editor by selecting Open C# Project from the Assets menu in Unity.
Accesso della documentazione di UnityUnity documentation access
Visual Studio per Mac Tools per Unity include un collegamento per accedere alla documentazione dell'API Unity.Visual Studio for Mac Tools for Unity includes a shortcut for accessing the Unity API documentation.Per accedere alla documentazione dell'API Unity da Visual Studio per Mac, posizionare il cursore sull'API Unity per cui si desiderano informazioni e premere command ⌘ + ‘ .To access Unity API documentation from Visual Studio for Mac, place the cursor over the Unity API you want to learn about and press ⌘ command + ‘.
IntelliSense per messaggi di UnityIntelliSense for Unity messages
Il motore Unity trasmette i messaggi agli script MonoBehaviour, consentendo agli sviluppatori di scrivere codice che reagisce a messaggi quali OnMouseDown, OnTriggerEnter e così via. Poiché questi non sono metodi virtuali nella classe base MonoBehaviour, alcuni IDE quali MonoDevelop non dispongono della funzionalità di completamento del codice per i messaggi Unity.The Unity engine broadcasts messages to MonoBehaviour scripts, allowing developers to write code that reacts to messages such as OnMouseDown, OnTriggerEnter, etc. Because these are not virtual methods in the base MonoBehaviour class, some IDEs such as MonoDevelop lack code completion functionality for Unity messages.
Tuttavia, Visual Studio per Mac Tools per Unity estende la propria funzionalità IntelliSense ai messaggi Unity.However, Visual Studio for Mac Tools for Unity extends its IntelliSense functionality to Unity messages.Ciò semplifica l'implementazione di messaggi Unity negli script MonoBehaviour e assiste nell'apprendimento dell'API Unity.This makes it easy to implement Unity messages in MonoBehaviour scripts, and assists with learning the Unity API.Per usare IntelliSense per i messaggi Unity:To use IntelliSense for Unity messages:
- Posizionare il cursore su una nuova riga nel corpo di una classe che deriva da MonoBehaviour.Place the cursor on a new line inside the body of a class that derives from MonoBehaviour.
- Iniziare digitando il nome di un messaggio Unity, ad esempio
OnTriggerEnter
.Begin typing the name of a Unity message, such asOnTriggerEnter
. - Dopo che le lettere 'ont' sono state digitate, viene visualizzato un elenco di suggerimenti di IntelliSense.Once the letters 'ont' have been typed, a list of IntelliSense suggestions appears.
- La selezione nell'elenco può essere modificata in tre modi:The selection on the list can be changed in three ways:
- Con le frecce su e giù.With the Up and Down arrow keys.
- Facendo clic con il mouse sull'elemento desiderato.By clicking with the mouse on the desired item.
- Continuando a digitare il nome dell'elemento desiderato.By continuing to type the name of the desired item.
- IntelliSense può inserire il messaggio di Unity selezionato, includendo gli eventuali parametri necessari:IntelliSense can insert the selected Unity message, including any necessary parameters:
- Premendo Tab.By pressing Tab.
- Premendo Return.By pressing Return.
- Facendo doppio clic sull'elemento selezionato.By double-clicking the selected item.
Aggiunta di nuovi file e cartelle di UnityAdding new Unity files and folders
Sebbene sia sempre possibile aggiungere nuovi file a un progetto Unity nell'editor di Unity, Visual Studio per Mac consente di creare agevolmente nuovi script, shader, struct, enumerazioni e cartelle di Unity dall'interno di Visual Studio.While you can always add new files to a Unity project in the Unity editor, Visual Studio for Mac allows for easily creating new Unity scripts, shaders, structs, enums, and folders from within Visual Studio.
Aggiungere un nuovo script C# MonoBehaviourAdd a new C# MonoBehaviour script
Per aggiungere un nuovo script C# MonoBehaviour, fare clic con il pulsante destro del mouse sulla cartella Assets o su una delle relative sottodirectory nel riquadro Soluzione e selezionare Aggiungi > Nuovo MonoBehaviour.To add a new C# MonoBehaviour script, right-click on the Assets folder or one of its subdirectories in the Solution pad and select Add > New MonoBehaviour.
Aggiungere un nuovo shader UnityAdd a new Unity shader
Per aggiungere un nuovo a shader Unity, fare clic con il pulsante destro del mouse sulla cartella Asset o su una sottodirectory nel riquadro Soluzione e selezionare Aggiungi -> Nuovo shader.To add a new Unity shader, right-click on the Assets folder or a subdirectory in the Solution pad and select Add > New Shader.
Aggiungere una nuova cartellaAdd a new folder
Per aggiungere una nuova cartella, fare clic con il pulsante destro del mouse sulla cartella Assets o su una sottodirectory nel riquadro Soluzione e selezionare Aggiungi > Nuova cartella.To add a new folder, right-click on the Assets folder or a subdirectory in the Solution pad and select Add > New Folder.
Queste aggiunte vengono riflesse nella finestra del progetto dell'editor di Unity.These additions are reflected in the Project window of the Unity editor. https://gruposkiey.weebly.com/cutepdf-editor-for-mac.html.
Per rinominare un file o una cartellaTo rename a file or folder
Fare clic con il pulsante destro del mouse sull'elemento da rinominare nel riquadro Soluzione e selezionare Rinomina.. .right-click on the item to rename in the Solution pad and select Rename...
Note
Se è presente un nuovo progetto Unity senza script e la cartella Assets non viene visualizzata nel riquadro Soluzione in Visual Studio per Mac, aggiungere uno script C# iniziale nell'editor di Unity.If you have a new Unity project with no scripts and the Assets folder does not show up in the Solution pad in Visual Studio for Mac, add an initial C# script from within the Unity editor.
Debug di UnityUnity debugging
È possibile eseguire il debug dei progetti Unity con Visual Studio per Mac.Unity projects can be debugged with Visual Studio for Mac. Mac visual basic for applications editor.
Unity Editor Log Mac
Avvia debugStart debugging
Per avviare il debug:To start debugging:
- Connettere Visual Studio a Unity facendo clic sul pulsante Riproduci o digitare Command + Return, oppure F5.Connect Visual Studio to Unity by clicking the Play button, or type Command + Return, or F5.
- Passare a Unity e fare clic sul pulsante Riproduci per eseguire il gioco nell'editor.Switch to Unity and click the Play button to run the game in the editor.
- Quando il gioco è in esecuzione nell'editor di Unity mentre è connesso a Visual Studio, qualsiasi punto di interruzione incontrato causa la sospensione dell'esecuzione del gioco e la visualizzazione della riga di codice dove il gioco ha incontrato il punto di interruzione in Visual Studio per Mac.When the game is running in the Unity editor while connected to Visual Studio, any breakpoints encountered will pause execution of the game and bring up the line of code where the game hit the breakpoint in Visual Studio for Mac.
Avviare il debug in un unico passaggioStart Debugging in a Single Step
È possibile avviare il debug e riprodurre l'editor di Unity in un unico passaggio direttamente da Visual Studio per Mac scegliendo la configurazione Collega a Unity e gioca.Starting debugging and playing the Unity editor can be completed in a single step directly from Visual Studio for Mac by choosing the Attach to Unity and Play configuration.
Arrestare il debugStop debugging
Per arrestare il debug:To stop debugging:
- Fare clic sul pulsante Interrompi in Visual Studio per Mac oppure premere Maiusc + Command + Return.Click the Stop button in Visual Studio for Mac, or press Shift + Command + Return.
Note
Se il debug è stato avviato con la configurazione Collega a Unity e gioca, il pulsante Interrompi interromperà anche Unity.If you started debugging using the Attach to Unity and Play configuration, the Stop button will also stop the Unity.
Unity Editor For Custom Class
Html Editor For Mac
Per ulteriori informazioni sul debug in Visual Studio per Mac, vedere Uso del debugger.To learn more about debugging in Visual Studio for Mac, see Using the debugger.