FairyGUI.InputTextField.CreateCaret C# (CSharp) Method

CreateCaret() static private method

static private CreateCaret ( ) : void
return void
        static void CreateCaret()
        {
            _caret = new Shape();
            _caret.gameObject.name = "InputCaret";
            _caret.touchable = false;
            _caret._skipInFairyBatching = true;
            _caret.graphics.dontClip = true;
            _caret.home = Stage.inst.cachedTransform;

            _selectionShape = new SelectionShape();
            _selectionShape.gameObject.name = "InputSelection";
            _selectionShape.color = UIConfig.inputHighlightColor;
            _selectionShape._skipInFairyBatching = true;
            _selectionShape.touchable = false;
            _selectionShape.home = Stage.inst.cachedTransform;
        }