本文整理汇总了C#中Part.SetHighlightDefault方法的典型用法代码示例。如果您正苦于以下问题:C# Part.SetHighlightDefault方法的具体用法?C# Part.SetHighlightDefault怎么用?C# Part.SetHighlightDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Part
的用法示例。
在下文中一共展示了Part.SetHighlightDefault方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Remove
public void Remove(Part p)
{
if (!internalHighlight.Contains(p))
return;
internalHighlight.Remove(p);
p.SetHighlightDefault();
}
示例2: ClearPartHighlight
/// <summary>
/// Remove highlighting on a part.
/// </summary>
/// <param name="part">Part to remove highlighting from.</param>
internal static void ClearPartHighlight(Part part)
{
try
{
if (part != null)
{
part.SetHighlight(false, false);
part.SetHighlightDefault();
part.highlightType = Part.HighlightType.OnMouseOver;
}
}
catch (Exception ex)
{
Utilities.LogMessage(string.Format(" in ClearPartHighlight. Error: {0} \r\n\r\n{1}", ex.Message, ex.StackTrace), "Error", true);
}
}
示例3: ClearHighlight
public static void ClearHighlight(Part part)
{
try
{
if (part != null)
{
part.SetHighlightDefault();
part.SetHighlight(false);
}
}
catch (Exception ex)
{
Debug.Log(" in ClearHighlight. Error: {0} \r\n\r\n{1}"+ ex.Message+ ex.StackTrace);
}
}
示例4: ClearHighlight
private void ClearHighlight(Part part)
{
if (part == null || !part.HighlightActive)
return;
part.SetHighlightDefault();
MonoBehaviour.print("ClearHighlight");
}
示例5: ClearHighlight
public static void ClearHighlight(Part part)
{
try
{
if (part != null)
{
part.SetHighlightDefault();
part.SetHighlight(false);
}
}
catch (Exception ex)
{
ManifestUtilities.LogMessage(string.Format(" in ClearHighlight. Error: {0} \r\n\r\n{1}", ex.Message, ex.StackTrace), "Error", true);
}
}
示例6: ClearHighlight
private void ClearHighlight(Part part)
{
if (part != null)
{
part.SetHighlightDefault();
part.SetHighlight(false);
}
}
示例7: OnMouseDetachExitPart
void OnMouseDetachExitPart(Part p)
{
if (detachActive)
{
KISAddonCursor.CursorEnable("KIS/Textures/detach", "Detach", "");
}
else
{
KISAddonCursor.CursorDefault();
}
p.SetHighlight(false, false);
p.SetHighlightDefault();
if (p.parent)
{
p.parent.SetHighlight(false, false);
p.parent.SetHighlightDefault();
}
detachOk = false;
}