static void CreateCaret() { _caret = new Shape(); _caret.touchable = false; _caret.graphics.dontClip = true; _selectionShape = new SelectionShape(); _selectionShape.color = UIConfig.inputHighlightColor; _selectionShape.touchable = false; }
static void CreateCaret() { _caret = new Shape(); _caret.gameObject.name = "Caret"; _caret.touchable = false; _caret._skipInFairyBatching = true; _caret.graphics.dontClip = true; _selectionShape = new SelectionShape(); _selectionShape.color = UIConfig.inputHighlightColor; _selectionShape._skipInFairyBatching = true; _selectionShape.touchable = false; }
void CreateCaret() { _caret = new Shape(); _caret.gameObject.name = "Caret"; _caret.touchable = false; _caret._flags |= Flags.SkipBatching; _caret.xy = textField.xy; _selectionShape = new SelectionShape(); _selectionShape.gameObject.name = "Selection"; _selectionShape.color = UIConfig.inputHighlightColor; _selectionShape._flags |= Flags.SkipBatching; _selectionShape.touchable = false; _selectionShape.xy = textField.xy; }
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; }
static new public void ClearStatic() { if (_caret != null) { _caret.Dispose(); } if (_selectionShape != null) { _selectionShape.Dispose(); } _caret = null; _selectionShape = null; _nextBlink = 0; onCopy = null; onPaste = null; }