Ejemplo n.º 1
0
 private void CreateXdk3DModels()
 {
     Xdk3DModels.Add(new Xdk3DModel {
         Name = DefaultModelName, DescriptionImageName = @"Sprites/schrift_200"
     });
     Xdk3DModels.Add(new Xdk3DModel {
         Name = "xdk.3DModel2", DescriptionImageName = @"Sprites/white_label_200"
     });
 }
Ejemplo n.º 2
0
        public void Open()
        {
            HideAllXdk3Models();
            var modelNameFromSettings = GetXdk3ModelNameFromSettings();
            var model = Xdk3DModels.FirstOrDefault(m => m.Name == modelNameFromSettings);

            if (model == null)
            {
                model = Xdk3DModels.First();
                if (!string.IsNullOrEmpty(modelNameFromSettings))
                {
                    Debug.LogWarning(string.Format("No {0} 3D model found", modelNameFromSettings));
                }
            }
            Xdk3DModel = model;
        }
Ejemplo n.º 3
0
        public void SetXdk3DModelByName(string xdk3DModelName)
        {
            var model = Xdk3DModels.First(m => m.Name == xdk3DModelName);

            Xdk3DModel = model;
        }