Q: How to open .unitypackage file?
A: Menu: Assets -> Import Package -> Custom Package.
Navigation
Q: How to address to asset directory from selected object?
A:
Address to Scene directory:
Address to Asset directory:
Prefab
Q: How to create a cube prefab asset?
A: The example script above won’t work until you assign a Prefab to the Block variable. To create a simple block Prefab:
Choose GameObject > 3D Object > Cube.
Drag the cube from the Hierarchy window into the Assets folder in the Project window. This creates a Prefab Asset.
Rename your Prefab to Block.
Now that your Block Prefab exists as an Asset, you can safely delete the cube from your Hierarchy.
Install Visual Studio Tools for Unity: check Game development with Unity in installation detail window of Visual Studio.
Microsoft Visual Studio Tools for Unity enabled would be shown in Unity Editor About panel when installation is finished.
Edit -> Preferences -> External Tools -> Set External Script Editor as Visual Studio.
Click Attach to Unity, then run game in editor, breakpoint would be trigger in Visual Studio.
Or you can click Attach to Unity and Play, game would be run from Visual Studio.