Files
Hasebe/Library/PackageCache/com.unity.addressables@42676f2a154e/Tests/Editor/DocExampleCode/ScriptReference/UsingCreateGroup.cs
T
2026-09-21 12:15:57 +03:00

19 lines
660 B
C#

namespace AddressableAssets.DocExampleCode
{
using UnityEditor.AddressableAssets.Settings;
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings.GroupSchemas;
internal class UsingCreateGroup
{
#region SAMPLE
public AddressableAssetGroup CreateNewGroup()
{
AddressableAssetSettings settings = AddressableAssetSettingsDefaultObject.Settings;
AddressableAssetGroup group = settings.CreateGroup("MyNewGroup", false, false, false, null, typeof(BundledAssetGroupSchema), typeof(ContentUpdateGroupSchema));
return group;
}
#endregion
}
}