Class ConfigAttribute
- Namespace
- Homa.Sdk.Configuration
- Assembly
- Homa.Sdk.Configuration.dll
Marks a class as a config class.
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class ConfigAttribute : Attribute
- Inheritance
-
ConfigAttribute
- Inherited Members
Constructors
ConfigAttribute(string)
Creates ConfigAttribute, used to mark classes as config classes.
public ConfigAttribute(string id)
Parameters
idstringThe ID of the config type, used to identify the config type when serializing.
Fields
HomaProjectSettingsPath
public const string HomaProjectSettingsPath = "HOMA"
Field Value
Properties
CanCreateManually
Enables creating new config assets from the project browser create menu.
public bool CanCreateManually { get; set; }
Property Value
Id
The ID of the config type, used to identify the config type when serializing.
public string Id { get; }
Property Value
IsReadOnly
Disables ability to edit the config in the inspector.
public bool IsReadOnly { get; set; }
Property Value
ProjectSettingsTabPath
Path used to create the settings tab in the tree view of the Project Settings window. The path should be unique among all other settings paths and should use "/" as its separator.
public string ProjectSettingsTabPath { get; set; }
Property Value
Remarks
If the path is not set, the settings will not be shown in the Project Settings window.