Unity Developer - Editor Tips

1. The code is changed during playing, and recompilation causes various errors
. In the Playing state, the Unity3D editor will recompile by default after detecting code changes, and then continue to run. You can set the timing of code recompilation in the Playing state
through Editor->Preferences->General->Script Changes While Playing .

2. Animation window shortcut keys
In the Animation window, press Ctrl+A, and all keyframes will be displayed in the window; select some keyframes, and press F to center them in the window; press C key to switch between curve view and key frame view; press K key to add key frame.

3. Obtain the preview image of the asset
AssetPreview.GetAssetPreview(Object obj) This method can only be used under the Editor.
see: https://docs.unity3d.com/ScriptReference/AssetPreview.GetAssetPreview.html

4. Quickly create 6 deformations, triangles and other shapes of sprite
Project view, right mouse button Create->Sprite->various shapes

5. Call the Unity3D menu item
EditorApplication.ExecuteMenuItem(“GameObject/Create Other/Cube”);

  • Maximize window Shift+space

  • Align Scene and Game view            Hierarchy panel select Camera, press Ctrl+Shift+F

  • Scene object highlight selection       In the Gizmos drop-down list in the upper right corner of the Scene panel, check the Selection Outline option to display the highlighted edge when the object is selected, otherwise it will not display

  • View the Unity Manual and API Reference Manual

Menu bar Help (Help) → Unity Manual (Unity Manual) command to open the default browser

Menu bar Help→Scripting Reference (script reference manual) command to open the default browser

Guess you like

Origin blog.csdn.net/Ai1114/article/details/126439502