Tanoda
UnityEngine.UI.Extensions.UIPrimitiveBase Class Reference
Inheritance diagram for UnityEngine.UI.Extensions.UIPrimitiveBase:
UnityEngine.UI.Extensions.DiamondGraph UnityEngine.UI.Extensions.UICircle UnityEngine.UI.Extensions.UICornerCut UnityEngine.UI.Extensions.UILineRenderer UnityEngine.UI.Extensions.UILineRendererList UnityEngine.UI.Extensions.UILineTextureRenderer UnityEngine.UI.Extensions.UIPolygon UnityEngine.UI.Extensions.UIGridRenderer

Public Member Functions

virtual void CalculateLayoutInputHorizontal ()
 
virtual void CalculateLayoutInputVertical ()
 
virtual bool IsRaycastLocationValid (Vector2 screenPoint, Camera eventCamera)
 

Protected Member Functions

 UIPrimitiveBase ()
 
UIVertex[] SetVbo (Vector2[] vertices, Vector2[] uvs)
 
Vector2[] IncreaseResolution (Vector2[] input)
 
List< Vector2 > IncreaseResolution (List< Vector2 > input)
 
virtual void GeneratedUVs ()
 
virtual void ResolutionToNativeSize (float distance)
 
override void OnEnable ()
 

Protected Attributes

float m_Resolution
 

Static Protected Attributes

static Material s_ETC1DefaultUI = null
 

Properties

Sprite sprite [get, set]
 
Sprite overrideSprite [get, set]
 
Sprite activeSprite [get]
 
float eventAlphaThreshold [get, set]
 
ResolutionMode ImproveResolution [get, set]
 
float Resolution [get, set]
 
bool UseNativeSize [get, set]
 
static Material defaultETC1GraphicMaterial [get]
 Default material used to draw everything if no explicit material was specified. More...
 
override Texture mainTexture [get]
 Image's texture comes from the UnityEngine.Image. More...
 
bool hasBorder [get]
 Whether the Image has a border to work with. More...
 
float pixelsPerUnit [get]
 
override Material material [get, set]
 
virtual float minWidth [get]
 
virtual float preferredWidth [get]
 
virtual float flexibleWidth [get]
 
virtual float minHeight [get]
 
virtual float preferredHeight [get]
 
virtual float flexibleHeight [get]
 
virtual int layoutPriority [get]
 

Detailed Description

Definition at line 13 of file UIPrimitiveBase.cs.

Constructor & Destructor Documentation

◆ UIPrimitiveBase()

UnityEngine.UI.Extensions.UIPrimitiveBase.UIPrimitiveBase ( )
protected

Definition at line 43 of file UIPrimitiveBase.cs.

Member Function Documentation

◆ CalculateLayoutInputHorizontal()

virtual void UnityEngine.UI.Extensions.UIPrimitiveBase.CalculateLayoutInputHorizontal ( )
virtual

Definition at line 210 of file UIPrimitiveBase.cs.

◆ CalculateLayoutInputVertical()

virtual void UnityEngine.UI.Extensions.UIPrimitiveBase.CalculateLayoutInputVertical ( )
virtual

Definition at line 211 of file UIPrimitiveBase.cs.

◆ GeneratedUVs()

virtual void UnityEngine.UI.Extensions.UIPrimitiveBase.GeneratedUVs ( )
protectedvirtual

◆ IncreaseResolution() [1/2]

List< Vector2 > UnityEngine.UI.Extensions.UIPrimitiveBase.IncreaseResolution ( List< Vector2 >  input)
protected

Definition at line 154 of file UIPrimitiveBase.cs.

◆ IncreaseResolution() [2/2]

Vector2[] UnityEngine.UI.Extensions.UIPrimitiveBase.IncreaseResolution ( Vector2[]  input)
protected

Definition at line 149 of file UIPrimitiveBase.cs.

◆ IsRaycastLocationValid()

virtual bool UnityEngine.UI.Extensions.UIPrimitiveBase.IsRaycastLocationValid ( Vector2  screenPoint,
Camera  eventCamera 
)
virtual

Definition at line 246 of file UIPrimitiveBase.cs.

◆ OnEnable()

override void UnityEngine.UI.Extensions.UIPrimitiveBase.OnEnable ( )
protected

Definition at line 353 of file UIPrimitiveBase.cs.

◆ ResolutionToNativeSize()

virtual void UnityEngine.UI.Extensions.UIPrimitiveBase.ResolutionToNativeSize ( float  distance)
protectedvirtual

◆ SetVbo()

UIVertex[] UnityEngine.UI.Extensions.UIPrimitiveBase.SetVbo ( Vector2[]  vertices,
Vector2[]  uvs 
)
protected

Definition at line 135 of file UIPrimitiveBase.cs.

Member Data Documentation

◆ m_Resolution

float UnityEngine.UI.Extensions.UIPrimitiveBase.m_Resolution
protected

Definition at line 36 of file UIPrimitiveBase.cs.

◆ s_ETC1DefaultUI

Material UnityEngine.UI.Extensions.UIPrimitiveBase.s_ETC1DefaultUI = null
staticprotected

Definition at line 15 of file UIPrimitiveBase.cs.

Property Documentation

◆ activeSprite

Sprite UnityEngine.UI.Extensions.UIPrimitiveBase.activeSprite
getprotected

Definition at line 25 of file UIPrimitiveBase.cs.

◆ defaultETC1GraphicMaterial

Material UnityEngine.UI.Extensions.UIPrimitiveBase.defaultETC1GraphicMaterial
staticget

Default material used to draw everything if no explicit material was specified.

Definition at line 52 of file UIPrimitiveBase.cs.

◆ eventAlphaThreshold

float UnityEngine.UI.Extensions.UIPrimitiveBase.eventAlphaThreshold
getset

Definition at line 29 of file UIPrimitiveBase.cs.

◆ flexibleHeight

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.flexibleHeight
get

Definition at line 239 of file UIPrimitiveBase.cs.

◆ flexibleWidth

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.flexibleWidth
get

Definition at line 225 of file UIPrimitiveBase.cs.

◆ hasBorder

bool UnityEngine.UI.Extensions.UIPrimitiveBase.hasBorder
get

Whether the Image has a border to work with.

Definition at line 86 of file UIPrimitiveBase.cs.

◆ ImproveResolution

ResolutionMode UnityEngine.UI.Extensions.UIPrimitiveBase.ImproveResolution
getset

Definition at line 33 of file UIPrimitiveBase.cs.

◆ layoutPriority

virtual int UnityEngine.UI.Extensions.UIPrimitiveBase.layoutPriority
get

Definition at line 241 of file UIPrimitiveBase.cs.

◆ mainTexture

override Texture UnityEngine.UI.Extensions.UIPrimitiveBase.mainTexture
get

Image's texture comes from the UnityEngine.Image.

Definition at line 65 of file UIPrimitiveBase.cs.

◆ material

override Material UnityEngine.UI.Extensions.UIPrimitiveBase.material
getset

Definition at line 115 of file UIPrimitiveBase.cs.

◆ minHeight

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.minHeight
get

Definition at line 227 of file UIPrimitiveBase.cs.

◆ minWidth

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.minWidth
get

Definition at line 213 of file UIPrimitiveBase.cs.

◆ overrideSprite

Sprite UnityEngine.UI.Extensions.UIPrimitiveBase.overrideSprite
getset

Definition at line 23 of file UIPrimitiveBase.cs.

◆ pixelsPerUnit

float UnityEngine.UI.Extensions.UIPrimitiveBase.pixelsPerUnit
get

Definition at line 99 of file UIPrimitiveBase.cs.

◆ preferredHeight

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.preferredHeight
get

Definition at line 229 of file UIPrimitiveBase.cs.

◆ preferredWidth

virtual float UnityEngine.UI.Extensions.UIPrimitiveBase.preferredWidth
get

Definition at line 215 of file UIPrimitiveBase.cs.

◆ Resolution

float UnityEngine.UI.Extensions.UIPrimitiveBase.Resolution
getset

Definition at line 37 of file UIPrimitiveBase.cs.

◆ sprite

Sprite UnityEngine.UI.Extensions.UIPrimitiveBase.sprite
getset

Definition at line 19 of file UIPrimitiveBase.cs.

◆ UseNativeSize

bool UnityEngine.UI.Extensions.UIPrimitiveBase.UseNativeSize
getset

Definition at line 41 of file UIPrimitiveBase.cs.


The documentation for this class was generated from the following file: