C# 클래스 UITextField, marblemadness

상속: AutoSpriteControlBase, IKeyFocusable
파일 보기 프로젝트 열기: MtvnGames/marblemadness 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
alert bool
allowClickCaretPlacement bool
autoCorrect bool
caretAnchor SpriteRoot.ANCHOR_METHOD
caretOffset Vector3
caretSize Vector2
commitOnLostFocus bool
customFocusEvent POINTER_INFO.INPUT_EVENT
customKeyboard bool
fieldFullSound UnityEngine.AudioSource
hideInput bool
margins Vector2
maskingCharacter string
maxLength int
methodToInvoke string
multiline bool
password bool
scriptWithMethodToInvoke MonoBehaviour
showCaretOnMobile bool
type iPhoneKeyboardType
typingSoundEffect UnityEngine.AudioSource

보호된 프로퍼티들

프로퍼티 타입 설명
cachedPos Vector3
cachedRot Quaternion
cachedScale Vector3
caret AutoSprite,
clientClippingRect Rect3D
commitDelegate EZKeyboardCommitDelegate
focusDelegate FocusDelegate
hasFocus bool
insert int
marginBottomRight Vector2
marginTopLeft Vector2
maxLengthExceeded bool
origTextPos Vector3
stateIndices ].int[

공개 메소드들

메소드 설명
AddCommitDelegate ( EZKeyboardCommitDelegate del ) : void

Adds a delegate to be called when the content of the field is "committed" (when the return key is pressed on a single-line field, or when the "Done" button is pressed on an iOS keyboard).

AddFocusDelegate ( FocusDelegate del ) : void

Adds a delegate to be called when the field receives the focus as determined by the customFocusEvent setting.

CalcClippingRect ( ) : void
Commit ( ) : void
Copy ( SpriteRoot, s ) : void
Copy ( SpriteRoot, s, ControlCopyFlags flags ) : void
Create ( string name, Vector3 pos ) : UITextField,

Creates a GameObject and attaches this component type to it.

Create ( string name, Vector3 pos, Quaternion rotation ) : UITextField,

Creates a GameObject and attaches this component type to it.

DoMirror ( ) : void
DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
GetInputText ( KEYBOARD_INFO, &info ) : string
GetTransitions ( int index ) : EZTransitionList
GotFocus ( ) : bool
Hide ( bool tf ) : void
InitUVs ( ) : void
LostFocus ( ) : void
OnDrawGizmosSelected ( ) : void
OnEZRotated ( ) : void
OnEZScaled ( ) : void
OnEZTranslated ( ) : void
OnInput ( POINTER_INFO, &ptr ) : void
RemoveCommitDelegate ( EZKeyboardCommitDelegate del ) : void

Removes a delegate previously added or set by AddCommitDelegate() or SetCommitDelegate().

RemoveFocusDelegate ( FocusDelegate del ) : void

Removes a delegate previously added or set by AddFocusDelegate() or SetFocusDelegate().

SetCommitDelegate ( EZKeyboardCommitDelegate del ) : void

Sets the delegate to be called when the content of the field is "committed" (when the return key is pressed on a single-line field, or when the "Done" button is pressed on an iOS keyboard). NOTE: This will unset any previously assigned commit delegate.

SetFocusDelegate ( FocusDelegate del ) : void

Sets the delegate to be called when the field receives the focus as determined by the customFocusEvent setting. NOTE: This will unset any previously assigned focus delegate.

SetInputText ( string inputText, int &insertPt ) : string
SetMargins ( Vector2 marg ) : void

Sets the margins to the specified values.

Start ( ) : void
Unclip ( ) : void

보호된 메소드들

메소드 설명
Awake ( ) : void
CreateCaret ( ) : void
HideCaret ( ) : void
PositionCaret ( ) : void
PositionCaret ( bool recur ) : void
PositionInsertionPoint ( Vector3 pt ) : void
PositionText ( bool recur ) : void
ShowCaret ( ) : void

메소드 상세

AddCommitDelegate() 공개 메소드

Adds a delegate to be called when the content of the field is "committed" (when the return key is pressed on a single-line field, or when the "Done" button is pressed on an iOS keyboard).
public AddCommitDelegate ( EZKeyboardCommitDelegate del ) : void
del EZKeyboardCommitDelegate The delegate to be called.
리턴 void

AddFocusDelegate() 공개 메소드

Adds a delegate to be called when the field receives the focus as determined by the customFocusEvent setting.
public AddFocusDelegate ( FocusDelegate del ) : void
del FocusDelegate The delegate to be called.
리턴 void

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

CalcClippingRect() 공개 메소드

public CalcClippingRect ( ) : void
리턴 void

Commit() 공개 메소드

public Commit ( ) : void
리턴 void

Copy() 공개 메소드

public Copy ( SpriteRoot, s ) : void
s SpriteRoot,
리턴 void

Copy() 공개 메소드

public Copy ( SpriteRoot, s, ControlCopyFlags flags ) : void
s SpriteRoot,
flags ControlCopyFlags
리턴 void

Create() 정적인 공개 메소드

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos ) : UITextField,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
리턴 UITextField,

Create() 정적인 공개 메소드

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos, Quaternion rotation ) : UITextField,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
rotation Quaternion Rotation of the object.
리턴 UITextField,

CreateCaret() 보호된 메소드

protected CreateCaret ( ) : void
리턴 void

DoMirror() 공개 메소드

public DoMirror ( ) : void
리턴 void

DrawPreTransitionUI() 공개 메소드

public DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
selState int
gui IGUIScriptSelector
리턴 void

GetInputText() 공개 메소드

public GetInputText ( KEYBOARD_INFO, &info ) : string
info KEYBOARD_INFO,
리턴 string

GetTransitions() 공개 메소드

public GetTransitions ( int index ) : EZTransitionList
index int
리턴 EZTransitionList

GotFocus() 공개 메소드

public GotFocus ( ) : bool
리턴 bool

Hide() 공개 메소드

public Hide ( bool tf ) : void
tf bool
리턴 void

HideCaret() 보호된 메소드

protected HideCaret ( ) : void
리턴 void

InitUVs() 공개 메소드

public InitUVs ( ) : void
리턴 void

LostFocus() 공개 메소드

public LostFocus ( ) : void
리턴 void

OnDrawGizmosSelected() 공개 메소드

public OnDrawGizmosSelected ( ) : void
리턴 void

OnEZRotated() 공개 메소드

public OnEZRotated ( ) : void
리턴 void

OnEZScaled() 공개 메소드

public OnEZScaled ( ) : void
리턴 void

OnEZTranslated() 공개 메소드

public OnEZTranslated ( ) : void
리턴 void

OnInput() 공개 메소드

public OnInput ( POINTER_INFO, &ptr ) : void
ptr POINTER_INFO,
리턴 void

PositionCaret() 보호된 메소드

protected PositionCaret ( ) : void
리턴 void

PositionCaret() 보호된 메소드

protected PositionCaret ( bool recur ) : void
recur bool
리턴 void

PositionInsertionPoint() 보호된 메소드

protected PositionInsertionPoint ( Vector3 pt ) : void
pt Vector3
리턴 void

PositionText() 보호된 메소드

protected PositionText ( bool recur ) : void
recur bool
리턴 void

RemoveCommitDelegate() 공개 메소드

Removes a delegate previously added or set by AddCommitDelegate() or SetCommitDelegate().
public RemoveCommitDelegate ( EZKeyboardCommitDelegate del ) : void
del EZKeyboardCommitDelegate The delegate to be removed.
리턴 void

RemoveFocusDelegate() 공개 메소드

Removes a delegate previously added or set by AddFocusDelegate() or SetFocusDelegate().
public RemoveFocusDelegate ( FocusDelegate del ) : void
del FocusDelegate The delegate to be removed.
리턴 void

SetCommitDelegate() 공개 메소드

Sets the delegate to be called when the content of the field is "committed" (when the return key is pressed on a single-line field, or when the "Done" button is pressed on an iOS keyboard). NOTE: This will unset any previously assigned commit delegate.
public SetCommitDelegate ( EZKeyboardCommitDelegate del ) : void
del EZKeyboardCommitDelegate The delegate to be called.
리턴 void

SetFocusDelegate() 공개 메소드

Sets the delegate to be called when the field receives the focus as determined by the customFocusEvent setting. NOTE: This will unset any previously assigned focus delegate.
public SetFocusDelegate ( FocusDelegate del ) : void
del FocusDelegate The delegate to be called.
리턴 void

SetInputText() 공개 메소드

public SetInputText ( string inputText, int &insertPt ) : string
inputText string
insertPt int
리턴 string

SetMargins() 공개 메소드

Sets the margins to the specified values.
public SetMargins ( Vector2 marg ) : void
marg Vector2 The distance, in local units, in from the edges of /// the control where the text within should be clipped.
리턴 void

ShowCaret() 보호된 메소드

protected ShowCaret ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Unclip() 공개 메소드

public Unclip ( ) : void
리턴 void

프로퍼티 상세

alert 공개적으로 프로퍼티

Whether the keyboard should be shown in alert mode. (iPhone OS only)
public bool alert
리턴 bool

allowClickCaretPlacement 공개적으로 프로퍼티

When true, the caret/insertion point is moved to the position clicked by the user. This is ignored if there is no caret, or if the platform is a mobile device which does not support programmatic placement of the insertion point.
public bool allowClickCaretPlacement
리턴 bool

autoCorrect 공개적으로 프로퍼티

Whether to use auto correction. (iPhone OS only)
public bool autoCorrect
리턴 bool

cachedPos 보호되어 있는 프로퍼티

protected Vector3 cachedPos
리턴 Vector3

cachedRot 보호되어 있는 프로퍼티

protected Quaternion cachedRot
리턴 Quaternion

cachedScale 보호되어 있는 프로퍼티

protected Vector3 cachedScale
리턴 Vector3

caret 보호되어 있는 프로퍼티

protected AutoSprite, caret
리턴 AutoSprite,

caretAnchor 공개적으로 프로퍼티

The anchor method to be used by the caret.
public SpriteRoot.ANCHOR_METHOD caretAnchor
리턴 SpriteRoot.ANCHOR_METHOD

caretOffset 공개적으로 프로퍼티

The distance, in local units, that the caret will be offset from the insertion point. Defaults to 0,0,-0.1 to keep it from being hidden "behind" the text.
public Vector3 caretOffset
리턴 Vector3

caretSize 공개적으로 프로퍼티

The size, in local units, of the caret sprite. This can be left at default if using pixel-perfect.
public Vector2 caretSize
리턴 Vector2

clientClippingRect 보호되어 있는 프로퍼티

protected Rect3D clientClippingRect
리턴 Rect3D

commitDelegate 보호되어 있는 프로퍼티

protected EZKeyboardCommitDelegate commitDelegate
리턴 EZKeyboardCommitDelegate

commitOnLostFocus 공개적으로 프로퍼티

When set to true, the commit delegate/method to invoke will be called when the field loses focus.
public bool commitOnLostFocus
리턴 bool

customFocusEvent 공개적으로 프로퍼티

Event that should trigger a custom focus event, if using your own custom input method (not using a hardware or OS-provided keyboard). Otherwise, this setting has no effect.
public POINTER_INFO.INPUT_EVENT customFocusEvent
리턴 POINTER_INFO.INPUT_EVENT

customKeyboard 공개적으로 프로퍼티

When true, the field will not accept input from the hardware or OS-provided keyboard, and instead must be operated using a custom keyboard provided by you.
public bool customKeyboard
리턴 bool

fieldFullSound 공개적으로 프로퍼티

Sound to play if typing has exceeded the field's length.
public AudioSource,UnityEngine fieldFullSound
리턴 UnityEngine.AudioSource

focusDelegate 보호되어 있는 프로퍼티

protected FocusDelegate focusDelegate
리턴 FocusDelegate

hasFocus 보호되어 있는 프로퍼티

protected bool hasFocus
리턴 bool

hideInput 공개적으로 프로퍼티

Specifies if text input field above the keyboard will be hidden when the keyboard is on screen.
public bool hideInput
리턴 bool

insert 보호되어 있는 프로퍼티

protected int insert
리턴 int

marginBottomRight 보호되어 있는 프로퍼티

protected Vector2 marginBottomRight
리턴 Vector2

marginTopLeft 보호되어 있는 프로퍼티

protected Vector2 marginTopLeft
리턴 Vector2

margins 공개적으로 프로퍼티

The distance, in local units, inward from the edges of the control that the text should be clipped.
public Vector2 margins
리턴 Vector2

maskingCharacter 공개적으로 프로퍼티

Holds the character to be used to mask password text. Defaults to asterisk (*).
public string maskingCharacter
리턴 string

maxLength 공개적으로 프로퍼티

The maximum number of characters the field can hold. A value of 0 is unlimited.
public int maxLength
리턴 int

maxLengthExceeded 보호되어 있는 프로퍼티

protected bool maxLengthExceeded
리턴 bool

methodToInvoke 공개적으로 프로퍼티

A string containing the name of the method to be invoked when enter is pressed (if single-line), or when "Done" is pressed on the iOS keyboard.
public string methodToInvoke
리턴 string

multiline 공개적으로 프로퍼티

Whether or not this field will accept multi-line input.
public bool multiline
리턴 bool

origTextPos 보호되어 있는 프로퍼티

protected Vector3 origTextPos
리턴 Vector3

password 공개적으로 프로퍼티

When set to true, all text in this control will be masked using the specified maskingCharacter.
public bool password
리턴 bool

scriptWithMethodToInvoke 공개적으로 프로퍼티

Reference to the script component with the method you wish to invoke when enter is pressed (if single-line), or when "Done" is pressed on the iOS keyboard.
public MonoBehaviour scriptWithMethodToInvoke
리턴 MonoBehaviour

showCaretOnMobile 공개적으로 프로퍼티

Sets whether a caret should be shown when running on a mobile device (such as iOS). It is recommended to keep this set to false since, for example, the keyboard on iOS has its own method of setting the insertion point, and Unity does not expose information about this insertion point, so if the EZ GUI caret is shown, there is no way for it to stay in sync with where the insertion point actually is because Unity does not pass that information through. So it is better to just leave the caret disabled for mobile devices and let the user use the built-in OS-specific text entry interface.
public bool showCaretOnMobile
리턴 bool

stateIndices 보호되어 있는 프로퍼티

protected int[,] stateIndices
리턴 ].int[

type 공개적으로 프로퍼티

The type of keyboard to display. (iPhone OS only)
public iPhoneKeyboardType type
리턴 iPhoneKeyboardType

typingSoundEffect 공개적으로 프로퍼티

Sound that will be played when the field receives keyboard input
public AudioSource,UnityEngine typingSoundEffect
리턴 UnityEngine.AudioSource