Search Feedback

13
votes

new attribute to set script execution order instead of using project setting.

Scripting

-

-

Using script execution order seems to be ugly while many times we need to use same code in difference projects.

And now we have to set up in project setting every time we come to new projects.

So if we can embed this setting directly to the code it will be so easy.

example:
[ExecutionOrder(10)]
public class MyScript : MonoBehaviour {}

[ExecutionOrder(11)]
public class MyScript : MonoBehaviour {}

[ExecutionOrder(0)]
public class MyScript : MonoBehaviour {}

Comments (1)

  1. 7814ee24455730d3307551815cd37ec0?d=mm

    Wanzyee

    Dec 18, 2017 15:50

    Although I've written my own for a long time, unfortunately I didn't publish it.
    BTW, I found this might be better.
    https://assetstore.unity.com/packages/tools/utilities/execution-order-attributes-105354

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10490)

2D

(266)

Ads

(51)

AI & Navigation

(90)

Analytics

(118)

Animation

(376)

Asset Store

(283)

Asset Store Publisher

(2)

Assets

(514)

Audio

(173)

Cloud Build

(128)

Collaborate

(46)

Docs & Tutorials

(225)

Editor

(2341)

Everyplay

(13)

Game Performance Reporting

(17)

General

(1270)

Graphics

(840)

GUI

(408)

Input

(159)

Licensing

(85)

Networking

(180)

Physics

(371)

Platforms

(432)

Profiling & Optimization

(78)

Runtime

(175)

Scripting

(1117)

Terrain

(165)

WebGL

(140)