-
First you select development build for Android.(Build Settings-> Android -> check Develop Build box)
-
Here is the guide from Unity doc: https://docs.unity3d.com/Manual/ProfilerWindow.html
-
Before the 'adb forward' you should check the port(34999) first using:
netstat -a -o -n | find "34999"
-
Kill the process that alreay take the port "34999" using:
taskkill /F /PID process_id
-
adb forward --remove-all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
public class NestedScrollRect : ScrollRect | |
{ | |
public override void OnInitializePotentialDrag(PointerEventData eventData) | |
{ | |
for(int i = 0; i < m_parentInitializePotentialDragHandlers.Length; ++i) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
project_path=$(pwd)/src/NAME_OF_PROJECT | |
log_file=$(pwd)/build/unity-mac.log | |
error_code=0 | |
echo "Building project for Mac OS." | |
/Applications/Unity/Unity.app/Contents/MacOS/Unity \ | |
-batchmode \ |