Skip to content

Gradient initialization should be in Awake() #126

@SimonDarksideJ

Description

@SimonDarksideJ

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions