当前位置: 首页>>代码示例>>C#>>正文


C# Transform.SetAsLastSibling方法代码示例

本文整理汇总了C#中UnityEngine.Transform.SetAsLastSibling方法的典型用法代码示例。如果您正苦于以下问题:C# Transform.SetAsLastSibling方法的具体用法?C# Transform.SetAsLastSibling怎么用?C# Transform.SetAsLastSibling使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UnityEngine.Transform的用法示例。


在下文中一共展示了Transform.SetAsLastSibling方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ToFront

		/// <summary>
		/// TBring to front specified object.
		/// </summary>
		/// <param name="obj">Object.</param>
		void ToFront(Transform obj)
		{
			obj.SetAsLastSibling();
			if (WithParents && (obj.parent!=null))
			{
				ToFront(obj.parent);
			}
		}
开发者ID:jaronimoe,项目名称:cellVIEW_animated,代码行数:12,代码来源:BringToFront.cs

示例2: MouseHoverStart

    protected virtual void MouseHoverStart()
    {
        IBigCardSpawnable bigCardSpawner = GetComponent<CardGraphic>() as IBigCardSpawnable;

        createdBigCardGraphic = bigCardSpawner.CreateBigCardGraphic();
        createdBigCardGraphic.transform.localScale = new Vector3(1.1f, 1.1f, 1f);
        createdBigCardGraphic.transform.SetParent(transform.parent, false);
        createdBigCardGraphic.transform.position = transform.position;
        //createdBigCardGraphic.transform.SetAsLastSibling();
        createdBigCardGraphic.GetComponent<LayoutElement>().ignoreLayout = true;
        Transform canvasTransform = transform.GetComponentInParent<Canvas>().transform;
        createdBigCardGraphic.transform.SetParent(canvasTransform, true);
        createdBigCardGraphic.SetAsLastSibling();
    }
开发者ID:bitterpark,项目名称:unassumingrepo,代码行数:14,代码来源:MiniaturizedCard.cs

示例3: UpdatePanels

 private void UpdatePanels(Transform panel)
 {
     if (panel)
     {
         panel.gameObject.SetActive(true);
         panel.SetAsLastSibling();
     }
     GameObject defaultButton = panel.GetComponent<MenuOption>().DefaultButton;
     if (defaultButton)
     {
         EventSystem.current.SetSelectedGameObject(defaultButton);
         Navigator.defaultGameObject = defaultButton;
     }
     if (activePanel) activePanel.gameObject.SetActive(false);
     activePanel = panel;
 }
开发者ID:dvalles,项目名称:Rangers,代码行数:16,代码来源:MenuManager.cs

示例4: SetTransform

 /// <summary>
 /// 设置卡牌大小位置
 /// </summary>
 /// <param name="vTransform"></param>
 public void SetTransform( Transform vTransform , int vPos )
 {
     vTransform.gameObject.SetActive(false);
     vTransform.SetParent(this.FightPanel.transform);
     vTransform.GetComponent<RectTransform>().anchoredPosition = mindPosList[vPos];
     vTransform.GetComponent<RectTransform>().sizeDelta = vTransform.GetComponent<RectTransform>().sizeDelta * mineCardScale;
     vTransform.localScale = Vector3.one;
     vTransform.SetAsLastSibling();
 }
开发者ID:tonyshow,项目名称:cardGame,代码行数:13,代码来源:FightCardTransfrom.cs

示例5: AttachChild

 private void AttachChild(Transform child)
 {
     child.SetParent(ItemsPanel);
     child.SetAsLastSibling();
     _elements.Add(child);
 }
开发者ID:Harriet92,项目名称:TemporalRPGSystem,代码行数:6,代码来源:RuleEditPanel.cs

示例6: AttachChild

 private void AttachChild(Transform child)
 {
     child.SetParent(_attributesContainer);
     child.SetAsLastSibling();
     _newAttributeField.transform.SetAsLastSibling();
 }
开发者ID:Harriet92,项目名称:TemporalRPGSystem,代码行数:6,代码来源:EntityElement.cs


注:本文中的UnityEngine.Transform.SetAsLastSibling方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。