Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradient initialization should be in Awake() #126

Closed
SimonDarksideJ opened this issue Apr 25, 2022 · 3 comments
Closed

Gradient initialization should be in Awake() #126

SimonDarksideJ opened this issue Apr 25, 2022 · 3 comments

Comments

@SimonDarksideJ
Copy link
Contributor

Issue created by Андрей Коробер as Bitbucket Issue #​126 on 2017.03.11 18:05.
Gradient.cs:

  protected override void Start()
        {
            targetGraphic = GetComponent<Graphic>();
        }

should be changed to:

protected override void Awake()
        {
            targetGraphic = GetComponent<Graphic>();
        }

because if gameobject is inactive on start, targetGraphic will not be setup, but ModifyMesh can be called when gameobject will become active.

@SimonDarksideJ
Copy link
Contributor Author

On 2017.03.12 10:45, @SimonDarksideJ commented:
Moved Initialize from Start to Awake to resolve #126

Referenced by ec31c8b

@SimonDarksideJ
Copy link
Contributor Author

On 2017.03.12 10:45 @SimonDarksideJ modified issue:
status changed newresolved

@SimonDarksideJ
Copy link
Contributor Author

On 2017.03.12 10:46, @SimonDarksideJ commented:
Accepted

SimonDarksideJ pushed a commit that referenced this issue Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant