コード例 #1
0
        public void CopyFrom(TextTemplate other)
        {
            font.value        = other.font.value;
            fontStyle.value   = other.fontStyle.value;
            fontSize.value    = other.fontSize.value;
            lineSpacing.value = other.lineSpacing.value;
            richText.value    = other.richText.value;

            alignment.value          = other.alignment.value;
            alignByGeometry.value    = other.alignByGeometry.value;
            horizontalOverflow.value = other.horizontalOverflow.value;
            verticalOverflow.value   = other.verticalOverflow.value;
            bestFit.value            = other.bestFit.value;
            fontMinSize.value        = other.fontMinSize.value;
            fontMaxSize.value        = other.fontMaxSize.value;

            color.value         = other.color.value;
            material.value      = other.material.value;
            raycastTarget.value = other.raycastTarget.value;

            font.apply        = other.font.apply;
            fontStyle.apply   = other.fontStyle.apply;
            fontSize.apply    = other.fontSize.apply;
            lineSpacing.apply = other.lineSpacing.apply;
            richText.apply    = other.richText.apply;

            alignment.apply          = other.alignment.apply;
            alignByGeometry.apply    = other.alignByGeometry.apply;
            horizontalOverflow.apply = other.horizontalOverflow.apply;
            verticalOverflow.apply   = other.verticalOverflow.apply;
            bestFit.apply            = other.bestFit.apply;
            fontMinSize.apply        = other.fontMinSize.apply;
            fontMaxSize.apply        = other.fontMaxSize.apply;

            color.apply         = other.color.apply;
            material.apply      = other.material.apply;
            raycastTarget.apply = other.raycastTarget.apply;
        }