예제 #1
0
 public void Import(V1.NodeData v1, Model.NodeData v2)
 {
     m_enabledBundleOptions = new SerializableMultiTargetInt(v1.BundleBuilderBundleOptions);
     m_outputDir            = new SerializableMultiTargetString();
     m_outputOption         = new SerializableMultiTargetInt((int)OutputOption.BuildInCacheDirectory);
     m_manifestName         = new SerializableMultiTargetString();
 }
예제 #2
0
 public void Import(V1.NodeData v1, Model.NodeData v2)
 {
     m_groupingKeyword = new SerializableMultiTargetString(v1.GroupingKeywords);
     m_patternType     = new SerializableMultiTargetInt((int)GroupingPatternType.WildCard);
     m_allowSlash      = true;
     m_groupNameFormat = new SerializableMultiTargetString();
 }
예제 #3
0
 public override void Initialize(Model.NodeData data)
 {
     m_path  = new SerializableMultiTargetString();
     m_style = AssertionStyle.AllowOnlyAssetsUnderAssertionPath;
     data.AddDefaultInputPoint();
     data.AddDefaultOutputPoint();
 }
예제 #4
0
 public void Import(V1.NodeData v1, Model.NodeData v2)
 {
     m_instance             = new SerializableMultiTargetInstance(v1.ScriptClassName, v1.InstanceData);
     m_replacePrefabOptions = v1.ReplacePrefabOptions;
     m_outputDir            = new SerializableMultiTargetString();
     m_outputOption         = new SerializableMultiTargetInt((int)OutputOption.CreateInCacheDirectory);
 }
예제 #5
0
        public override void Initialize(Model.NodeData data)
        {
            m_groupNameFormat = new SerializableMultiTargetString();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #6
0
 public override void Initialize(Model.NodeData data)
 {
     //Take care of this with Initialize(NodeData)
     m_importDirectoryPath = new SerializableMultiTargetString();
     m_isInteractive       = new SerializableMultiTargetInt();
     m_isRecursive         = new SerializableMultiTargetInt();
 }
예제 #7
0
        public override void Initialize(Model.NodeData data)
        {
            m_searchFilter         = new SerializableMultiTargetString();
            m_respondToAssetChange = false;

            data.AddDefaultOutputPoint();
        }
예제 #8
0
 public SerializableMultiTargetString(SerializableMultiTargetString rhs)
 {
     m_values = new List <Entry>();
     foreach (var v in rhs.m_values)
     {
         m_values.Add(new Entry(v.targetGroup, v.value));
     }
 }
        public override void Initialize(Model.NodeData data)
        {
            m_packageName          = new SerializableMultiTargetString();
            m_exportPackageOptions = new SerializableMultiTargetInt();

            data.AddDefaultInputPoint();
            data.AddOutputPoint("UnityPackage");
        }
예제 #10
0
        public override void Initialize(Model.NodeData data)
        {
            m_instance     = new SerializableMultiTargetInstance();
            m_outputDir    = new SerializableMultiTargetString();
            m_outputOption = new SerializableMultiTargetInt((int)OutputOption.CreateInCacheDirectory);

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #11
0
        public override void Initialize(Model.NodeData data)
        {
            //Take care of this with Initialize(NodeData)
            m_exportPath   = new SerializableMultiTargetString();
            m_exportOption = new SerializableMultiTargetInt();
            m_flattenDir   = new SerializableMultiTargetInt();

            data.AddDefaultInputPoint();
        }
        public void OnInspectorGUI(AssetImporter referenceImporter, BuildTargetGroup target, Action onValueChanged)
        {
            var importer = referenceImporter as TextureImporter;

            if (importer == null)
            {
                return;
            }

            string content = @"目标图片的 
TextureType
PixelsPerUnit 
GeneratePhyiscsShape 
Read/Write Enable 
GenerateMipMaps 
多平台图片质量设置 
等属性将被锁定";

            GUILayout.Label(content);

            if (importer.textureType == TextureImporterType.Sprite)
            {
                using (new EditorGUILayout.VerticalScope(GUI.skin.box))
                {
                    GUILayout.Label("Sprite Settings");
                    GUILayout.Space(4f);
                    var bSpriteSheet = EditorGUILayout.ToggleLeft("Configure Sprite Mode", m_overwriteSpriteSheet);
                    var bPackingTag  = EditorGUILayout.ToggleLeft("Configure Sprite Packing Tag", m_overwritePackingTag);

                    if (bSpriteSheet != m_overwriteSpriteSheet || bPackingTag != m_overwritePackingTag)
                    {
                        m_overwriteSpriteSheet = bSpriteSheet;
                        m_overwritePackingTag  = bPackingTag;
                        onValueChanged();
                    }

                    if (m_overwritePackingTag)
                    {
                        if (m_customPackingTagTemplate == null)
                        {
                            m_customPackingTagTemplate = new SerializableMultiTargetString();
                        }

                        var val = m_customPackingTagTemplate.DefaultValue;

                        var newValue = EditorGUILayout.TextField("Packing Tag", val);
                        if (newValue != val)
                        {
                            m_customPackingTagTemplate.DefaultValue = newValue;
                            onValueChanged();
                        }
                    }

                    EditorGUILayout.HelpBox("You can configure packing tag name with \"*\" to include group name in your sprite tag.", MessageType.Info);
                }
            }
        }
예제 #13
0
 public override void Initialize(Model.NodeData data)
 {
     m_buildOptions   = new SerializableMultiTargetInt();
     m_buildLocations = new SerializableMultiTargetString();
     m_playerName     = new SerializableMultiTargetString();
     m_scenes         = new SerializableMultiTargetString();
     data.AddDefaultInputPoint();
     m_scroll = Vector2.zero;
 }
예제 #14
0
        public override void Initialize(Model.NodeData data)
        {
            m_bundleNameTemplate = new SerializableMultiTargetString(Model.Settings.BUNDLECONFIG_BUNDLENAME_TEMPLATE_DEFAULT);
            m_useGroupAsVariants = false;
            m_variants           = new List <Variant>();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
 public SerializableMultiTargetInstance(string assemblyQualifiedName, SerializableMultiTargetString instanceData)
 {
     m_className = assemblyQualifiedName;
     m_values    = new List <Entry>(instanceData.Values.Count);
     foreach (var v in instanceData.Values)
     {
         m_values.Add(new Entry(v.targetGroup, CustomScriptUtility.EncodeString(v.value), null));
     }
 }
예제 #16
0
        public override void Initialize(Model.NodeData data)
        {
            m_srcPath      = new SerializableMultiTargetString();
            m_dstPath      = new SerializableMultiTargetString();
            m_mirrorOption = new SerializableMultiTargetInt();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #17
0
        public void Import(V1.NodeData v1, Model.NodeData v2)
        {
            m_bundleNameTemplate = new SerializableMultiTargetString(v1.BundleNameTemplate);
            m_useGroupAsVariants = v1.BundleConfigUseGroupAsVariants;

            foreach (var v in v1.Variants)
            {
                m_variants.Add(new Variant(v.Name, v2.FindInputPoint(v.ConnectionPointId)));
            }
        }
예제 #18
0
        public override void Initialize(Model.NodeData data)
        {
            m_groupingKeyword = new SerializableMultiTargetString(Model.Settings.GROUPING_KEYWORD_DEFAULT);
            m_patternType     = new SerializableMultiTargetInt((int)GroupingPatternType.WildCard);
            m_allowSlash      = false;
            m_groupNameFormat = new SerializableMultiTargetString();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #19
0
        public override void Initialize(Model.NodeData data)
        {
            //Take care of this with Initialize(NodeData)
            m_destinationPath        = new SerializableMultiTargetString();
            m_destinationOption      = new SerializableMultiTargetInt();
            m_operationType          = FileOperationType.Copy;
            m_removingDirectoryDepth = 1;

            data.AddDefaultInputPoint();
        }
예제 #20
0
파일: Loader.cs 프로젝트: kookllcat3/MyKit
 public void Import(V1.NodeData v1, Model.NodeData v2)
 {
     m_loadPath     = new SerializableMultiTargetString(v1.LoaderLoadPath);
     m_loadPathGuid = new SerializableMultiTargetString();
     foreach (var v in m_loadPath.Values)
     {
         var loadPath = FileUtility.PathCombine(Model.Settings.Path.ASSETS_PATH, v.value);
         m_loadPathGuid [v.targetGroup] = AssetDatabase.AssetPathToGUID(loadPath);
     }
 }
예제 #21
0
        public override void Initialize(Model.NodeData data)
        {
            m_enabledBundleOptions = new SerializableMultiTargetInt();
            m_outputDir            = new SerializableMultiTargetString();
            m_outputOption         = new SerializableMultiTargetInt((int)OutputOption.BuildInCacheDirectory);
            m_manifestName         = new SerializableMultiTargetString();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #22
0
파일: Loader.cs 프로젝트: kookllcat3/MyKit
        public Loader(string path)
        {
            var normalizedPath = NormalizeLoadPath(path);
            var loadPath       = FileUtility.PathCombine(Model.Settings.Path.ASSETS_PATH, normalizedPath);
            var guid           = AssetDatabase.AssetPathToGUID(loadPath);

            m_loadPath     = new SerializableMultiTargetString(normalizedPath);
            m_loadPathGuid = new SerializableMultiTargetString(guid);

            m_respondToAssetChange = false;
        }
예제 #23
0
        public override void Initialize(Model.NodeData data)
        {
            m_groupSizeByte    = new SerializableMultiTargetInt();
            m_groupingType     = new SerializableMultiTargetInt();
            m_groupViewContext = new GroupViewContext();
            m_freezeGroups     = false;
            m_groupNameFormat  = new SerializableMultiTargetString();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #24
0
        public override void Initialize(Model.NodeData data)
        {
            m_entries = new List <GeneratorEntry>();

            m_outputDir    = new SerializableMultiTargetString();
            m_outputOption = new SerializableMultiTargetInt((int)OutputOption.CreateInCacheDirectory);

            data.AddDefaultInputPoint();
            var point = data.AddDefaultOutputPoint();

            m_defaultOutputPointId = point.Id;
        }
예제 #25
0
        public override bool Equals(object rhs)
        {
            SerializableMultiTargetString other = rhs as SerializableMultiTargetString;

            if (other == null)
            {
                return(false);
            }
            else
            {
                return(other == this);
            }
        }
예제 #26
0
        public override void Initialize(Model.NodeData data)
        {
            m_spritePackingTagNameTemplate = new SerializableMultiTargetString("*");
            m_overwritePackingTag          = false;
            m_useCustomSettingAsset        = false;
            m_customSettingAssetGuid       = string.Empty;
            m_overwriteSpriteSheet         = false;
            m_referenceAssetGuid           = string.Empty;

            m_configuratorInstance = new SerializableMultiTargetInstance();

            data.AddDefaultInputPoint();
            data.AddDefaultOutputPoint();
        }
예제 #27
0
파일: Loader.cs 프로젝트: kookllcat3/MyKit
        public override void Initialize(Model.NodeData data)
        {
            if (m_loadPath == null)
            {
                m_loadPath = new SerializableMultiTargetString();
            }
            if (m_loadPathGuid == null)
            {
                m_loadPathGuid = new SerializableMultiTargetString();
            }

            m_respondToAssetChange = false;

            data.AddDefaultOutputPoint();
        }
예제 #28
0
 public void Import(V1.NodeData v1, Model.NodeData v2)
 {
     m_exportPath   = new SerializableMultiTargetString(v1.ExporterExportPath);
     m_exportOption = new SerializableMultiTargetInt(v1.ExporterExportOption);
     m_flattenDir   = new SerializableMultiTargetInt();
 }
 public void Initialize(ConfigurationOption option)
 {
     m_overwritePackingTag      = option.overwritePackingTag;
     m_overwriteSpriteSheet     = option.overwriteSpriteSheet;
     m_customPackingTagTemplate = option.customPackingTagTemplate;
 }