Tanoda
CopyHeight.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
public
class
CopyHeight
: MonoBehaviour
6
{
7
public
RectTransform
from
,
to
;
8
public
float
extra
= 0;
9
10
void
Update()
11
{
12
to
.sizeDelta =
new
Vector2(
to
.sizeDelta.x, @
from
.sizeDelta.y +
extra
);
13
}
14
}
CopyHeight
Definition:
CopyHeight.cs:6
CopyHeight.extra
float extra
Definition:
CopyHeight.cs:8
CopyHeight.to
RectTransform to
Definition:
CopyHeight.cs:7
CopyHeight.from
RectTransform from
Definition:
CopyHeight.cs:7
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
TagsProperties
CopyHeight.cs
Generated by
1.9.3