tk2dTextMesh.Awake C# (CSharp) Method

Awake() public method

public Awake ( ) : void
return void
    void Awake()
    {
        if (_font != null)
            _fontInst = _font.inst;

        if (pixelPerfect)
            MakePixelPerfect();

        // force rebuild when awakened, for when the object has been pooled, etc
        // this is probably not the best way to do it
        updateFlags = UpdateFlags.UpdateBuffers;

        if (_font != null)
        {
            Init();
            UpdateMaterial();
        }
    }