본문으로 건너뛰기

Update

Overloads

NameDescription
Update(int id, Vertex3D center, Vector3D dir, Vector3D upDir, float height, float fontSize, Color color, string text)Draw Text 변경
Update(int id, Vertex3D center)Draw Text 위치 변경
Update(int id, Vector3D dir, Vector3D upDir)Draw Text 방향 변경
Update(int id, float height)Draw Text 크기 변경
Update(int id, Color color)Draw Text 색상 변경
Update(int id, string text)Draw Text 텍스트 변경

Update(int id, Vertex3D center, Vector3D dir, Vector3D upDir, float height, float fontSize, Color color, string text)

public void Update(int id, Vertex3D center, Vector3D dir, Vector3D upDir, float height, float fontSize, Color color, string text)

Draw Text 변경

Parameters

NameTypeDescription
idintUpdate Item ID
centerVertex3DText Center
dirVector3DText Direction : 텍스트가 작성되는 방향. Camera가 Z+ 인 경우, 텍스트는 X+ 방향으로 작성 (1, 0, 0)
upDirVector3DText Up Direction : 텍스트의 위쪽 방향. Camera가 Z+ 인 경우, 위쪽 방향은 Y+ 임 (0, 1, 0)
heightfloatText Height
fontSizefloatFont Size : 34 ~ 250
colorColorText Color
textstringText

Update(int id, Vertex3D center)

public void Update(int id, Vertex3D center)

Draw Text 위치 변경

Parameters

NameTypeDescription
idintUpdate Item ID
centerVertex3DText Center

Update(int id, Vector3D dir, Vector3D upDir)

public void Update(int id, Vector3D dir, Vector3D upDir)

Draw Text 방향 변경

Parameters

NameTypeDescription
idintUpdate Item ID
dirVector3DText Direction : 텍스트가 작성되는 방향. Camera가 Z+ 인 경우, 텍스트는 X+ 방향으로 작성 (1, 0, 0)
upDirVector3DText Up Direction : 텍스트의 위쪽 방향. Camera가 Z+ 인 경우, 위쪽 방향은 Y+ 임 (0, 1, 0)

Update(int id, float height)

public void Update(int id, float height)

Draw Text 크기 변경

Parameters

NameTypeDescription
idintUpdate Item ID
heightfloatheight

Update(int id, Color color)

public void Update(int id, Color color)

Draw Text 색상 변경

Parameters

NameTypeDescription
idintUpdate Item ID
colorColorText Color

Update(int id, string text)

public void Update(int id, string text)

Draw Text 텍스트 변경

Parameters

NameTypeDescription
idintUpdate Item ID
textstringText