增加AxisTickwidth参数可单独设置坐标轴刻度的宽度

This commit is contained in:
monitor1394
2020-03-20 08:47:34 +08:00
parent a1018801d4
commit 541bc421b7
7 changed files with 52 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
/******************************************/
/* */
/* Copyright (c) 2018 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/
using UnityEngine;
using UnityEngine.UI;
namespace XCharts
{
internal static class AxisHelper
{
public static float GetTickWidth(Axis axis)
{
return axis.axisTick.width != 0 ? axis.axisTick.width : axis.axisLine.width;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ada7d0edfc97b432db026ca5eecea8ac
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: