Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Commit 2cb794b

Browse files
committed
Fixed the cancel button actually working
Updated ScriptableObject example
1 parent 2c2025d commit 2cb794b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ExecutionOrderAttribute/Assets/ExecutionOrderAttribute/ExecutionOrderAttribute.cs

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ private static void Execute() {
7474
if ( MonoImporter.GetExecutionOrder( item.Key ) != item.Value.ExecutionOrder ) {
7575
MonoImporter.SetExecutionOrder( item.Key, item.Value.ExecutionOrder );
7676
}
77+
78+
if ( cancelled ) break;
7779
}
7880
}
7981

ExecutionOrderAttribute/Assets/Testing/Scriptable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections;
33

44
[ExecutionOrder( -50 )]
5-
public class Scriptable : MonoBehaviour {
5+
public class Scriptable : ScriptableObject {
66

77
// Use this for initialization
88
void Start() {

ExecutionOrderAttribute/Assets/Testing/Scriptable.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)