Revize a5c3168d
Přidáno uživatelem Oto Šťáva před téměř 4 roky(ů)
deltarobot-vr/Assets/DeltaRobotVr/Components/Curve.cs | ||
---|---|---|
6 | 6 |
{ |
7 | 7 |
private long _currentCounter; |
8 | 8 |
private LineRenderer _lineRenderer; |
9 |
|
|
9 |
|
|
10 | 10 |
void Start() |
11 | 11 |
{ |
12 | 12 |
_currentCounter = Client.Instance.CurveCounter; |
13 | 13 |
_lineRenderer = GetComponent<LineRenderer>(); |
14 | 14 |
|
15 | 15 |
// Set curve color |
16 |
var color = UnityEngine.Color.yellow;
|
|
16 |
var color = Color.yellow; |
|
17 | 17 |
var cs = ConfigurationProvider.Instance.CurveColorHex; |
18 | 18 |
ColorUtility.TryParseHtmlString(cs, out color); |
19 |
|
|
19 |
|
|
20 | 20 |
_lineRenderer.material.color = color; |
21 |
|
|
22 |
var widthCurve = new AnimationCurve(); |
|
23 |
widthCurve.AddKey(0.0f, ConfigurationProvider.Instance.VisualizationScaleOverall * 1); |
|
24 |
_lineRenderer.widthCurve = widthCurve; |
|
21 | 25 |
} |
22 | 26 |
|
23 | 27 |
void Update() |
Také k dispozici: Unified diff
Re #9000 - On-site adjustments