mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Initial commit
This commit is contained in:
commit
3c7cc0c973
8391 changed files with 704313 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
namespace TMPro
|
||||
{
|
||||
/// <summary>
|
||||
/// A simple component that can be added to a newly created object where inheriting from MaskableGraphic is needed.
|
||||
/// </summary>
|
||||
public class TMP_SelectionCaret : MaskableGraphic
|
||||
{
|
||||
/// <summary>
|
||||
/// Override to Cull function of MaskableGraphic to prevent Culling.
|
||||
/// </summary>
|
||||
/// <param name="clipRect"></param>
|
||||
/// <param name="validRect"></param>
|
||||
public override void Cull(Rect clipRect, bool validRect)
|
||||
{
|
||||
//Debug.Log("***** Cull (" + clipRect + ") Valid Rect: " + validRect + " Cull: " + canvasRenderer.cull + " *****");
|
||||
|
||||
if (validRect)
|
||||
{
|
||||
canvasRenderer.cull = false;
|
||||
CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this);
|
||||
return;
|
||||
}
|
||||
|
||||
base.Cull(clipRect, validRect);
|
||||
}
|
||||
|
||||
protected override void UpdateGeometry()
|
||||
{
|
||||
// Function overridden as Caret and text Selection Highlight is controlled by the Input Field.
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue