UnityEditor.HumanTemplate.Insert C# (CSharp) Method

Insert() private method

private Insert ( string name, string templateName ) : void
name string
templateName string
return void
        public extern void Insert(string name, string templateName);
    }

Usage Example

Beispiel #1
0
        private void SaveHumanTemplate()
        {
            string path = EditorUtility.SaveFilePanelInProject("Create New Human Template", "New Human Template", "ht", string.Format("Create a new human template"));

            if (path == string.Empty)
            {
                return;
            }
            HumanTemplate humanTemplate = new HumanTemplate();

            humanTemplate.ClearTemplate();
            for (int index = 0; index < this.m_Bones.Length; ++index)
            {
                if ((UnityEngine.Object) this.m_Bones[index].bone != (UnityEngine.Object)null)
                {
                    humanTemplate.Insert(this.m_Bones[index].humanBoneName, this.m_Bones[index].bone.name);
                }
            }
            AssetDatabase.CreateAsset((UnityEngine.Object)humanTemplate, path);
        }
All Usage Examples Of UnityEditor.HumanTemplate::Insert