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


C# UIPanel.GetComponentInChildren方法代码示例

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


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

示例1: Start

    // Use this for initialization
    void Start()
    {
        meetingListPage = GameObject.Find("mainPannel").GetComponent<UIPanel>();
        grid = meetingListPage.GetComponentInChildren<UIGrid>();

        this.initFakeData();
    }
开发者ID:henrybit,项目名称:GroupJoinUs,代码行数:8,代码来源:MeetingList.cs

示例2: startStory

	public void startStory(int templateID)
	{
		story  = Instantiate(StroyPanel, Vector3.zero, Quaternion.identity) as UIPanel;
		story.transform.parent = parent.transform;
		story.transform.localScale = Vector3.one;
		story.transform.localPosition = Vector3.zero;
		story.gameObject.SetActive(true);

		StroyPlay play = story.GetComponentInChildren<StroyPlay>();
		if(null != play)
		{
			play.play(templateID);
		}
	}
开发者ID:TrojanFighter,项目名称:U3D-DesignerBehaviorTest1,代码行数:14,代码来源:StroyManager.cs

示例3: CreateGraphics

        internal void CreateGraphics()
        {
            try {

                var uiView = UIView.GetAView();
                TextureDB.LoadFavCimsTextures();
                Atlas.LoadAtlasIcons();

                ////////////////////////////////////////////////
                ///////////Favorite Button Manu Panel/////////
                ///////////////////////////////////////////////

                //MainMenuPos = UIView.GetAView().FindUIComponent<UITabstrip> ("MainToolstrip");
                MainMenuPos = UIView.Find<UITabstrip> ("MainToolstrip");

                if(MainMenuPos.Find<FavoritesCimsButton>("FavCimsMenuPanel") != null) {
                    FavCimsMenuPanel = MainMenuPos.Find<FavoritesCimsButton>("FavCimsMenuPanel");
                }else{
                    FavCimsMenuPanel = MainMenuPos.AddUIComponent(typeof(FavoritesCimsButton)) as FavoritesCimsButton;
                }

                ////////////////////////////////////////////////
                ////////////////Favorite Panel////////////////
                ///////////////////////////////////////////////

                FullScreenContainer = UIView.Find<UIPanel> ("FullScreenContainer");
                FavCimsPanel = FullScreenContainer.AddUIComponent<FavoriteCimsMainPanel> ();
                FavCimsPanel.Hide ();

                FullScreenContainer.eventMouseDown += delegate {
                    if (!FavCimsPanel.containsMouse) {
                        FavCimsPanel.SendToBack ();
                    } else {
                        FavCimsPanel.BringToFront ();
                    }
                };

                ////////////////////////////////////////////////
                ////////////Humans Button & Subscribe///////////
                ///////////////////////////////////////////////

                FavCimsHumanPanel = FullScreenContainer.Find<UIPanel> ("(Library) CitizenWorldInfoPanel");

                if (FavCimsHumanPanel != null) {
                    if(FavCimsHumanPanel.GetComponentInChildren<AddToFavButton>() != null) {
                        FavStarButton = FavCimsHumanPanel.GetComponentInChildren<AddToFavButton>();
                    }else{
                        FavStarButton = FavCimsHumanPanel.AddUIComponent(typeof(AddToFavButton)) as AddToFavButton;
                    }
                }

                GenerateFamilyDetailsTpl();

            } catch (Exception e) {
                Debug.Error ("OnLoad List Error : " + e.ToString ());
            }
        }
开发者ID:EmperorOfDoom,项目名称:CitiesSkylineFavoriteCimsMod,代码行数:57,代码来源:LoadManager.cs

示例4: Start

 // Use this for initialization
 void Start()
 {
     meetingDetailPage = GameObject.Find("startMeetingPannel").GetComponent<UIPanel>();
     dateSlider = meetingDetailPage.GetComponentInChildren<UISlider>();
 }
开发者ID:henrybit,项目名称:GroupJoinUs,代码行数:6,代码来源:MeetingDetail.cs

示例5: Load

    public static Asset Load(string name)
    {
        Asset asset = AssetMgr.Load(name);
        if (asset == null)
            return null;

        asset.OnAssetLoaded = delegate(Object obj)
        {
            if (uiRoot == null)
            {
                uiRoot = NGUITools.CreateUI(false);
                GameObject.DontDestroyOnLoad(uiRoot.gameObject);
                //uiRoot.camera.audio.enabled = false;
                AudioListener al = (AudioListener)uiRoot.GetComponentInChildren<AudioListener>();
                al.enabled = false;
            }

            GameObject go = NGUITools.AddChild(uiRoot.gameObject, obj as GameObject);
            go.name = go.name.Replace("(Clone)", "");
        };

        return asset;
    }
开发者ID:huairen,项目名称:AssetBundleManager,代码行数:23,代码来源:GUITool.cs

示例6: ApplyToIconPanel

 private void ApplyToIconPanel(UIPanel groupPanel, IconPanelModifier modifier, bool verticalScroll)
 {
     if(groupPanel == null)
         return;
     if(modifier == null)
         return;
     try{ //seperator panels do not have UIScrollablePanels nor UIScrollbars
         UITabContainer tabContainer = groupPanel.GetComponentInChildren<UITabContainer>();
         foreach(UIComponent comp in tabContainer.components){ //for each displayable panel of icons
             if(comp is UIPanel){
                 UIPanel panel = comp as UIPanel;
                 UIScrollablePanel sp = panel.GetComponentInChildren<UIScrollablePanel>();
                 UIScrollbar sb = panel.GetComponentInChildren<UIScrollbar>();
                 modifier.Invoke(panel,sp,sb,verticalScroll);
                 panel.Invalidate();
                 sp.Invalidate();
                 sb.Invalidate();
             }
         }
         tabContainer.Invalidate();
     }catch(Exception e){
         //Debug.Print(groupPanel,e);
     }
 }
开发者ID:CWMlolzlz,项目名称:CS-AdvancedToolbar,代码行数:24,代码来源:ExpandableToolbar.cs


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