Class HDEditorUtils
Inheritance
HDEditorUtils
Syntax
public class HDEditorUtils
Methods
CopyFileWithRetryOnUnauthorizedAccess(String, String)
Declaration
public static bool CopyFileWithRetryOnUnauthorizedAccess(string s, string path)
Parameters
Returns
DrawSectionFoldout(String, Boolean)
Declaration
public static bool DrawSectionFoldout(string title, bool isExpanded)
Parameters
Returns
FlagToggle<TEnum>(TEnum, SerializedProperty)
Declaration
public static bool FlagToggle<TEnum>(TEnum v, SerializedProperty property)
where TEnum : struct, IConvertible
Parameters
| Type |
Name |
Description |
| TEnum |
v |
|
| SerializedProperty |
property |
|
Returns
Type Parameters
GetBaseShaderPreprocessorList()
Declaration
public static List<BaseShaderPreprocessor> GetBaseShaderPreprocessorList()
Returns
HumanizeWeight(Int64)
Give a human readable string representing the inputed weight given in byte.
Declaration
public static string HumanizeWeight(long weightInByte)
Parameters
| Type |
Name |
Description |
| Int64 |
weightInByte |
|
Returns
IsAssetPath(String)
Declaration
public static bool IsAssetPath(string path)
Parameters
| Type |
Name |
Description |
| String |
path |
|
Returns
LightLayerMaskPropertyDrawer(GUIContent, SerializedProperty)
Provide a specific property drawer for LightLayer
Declaration
public static void LightLayerMaskPropertyDrawer(GUIContent label, SerializedProperty property)
Parameters
| Type |
Name |
Description |
| GUIContent |
label |
The desired label
|
| SerializedProperty |
property |
The SerializedProperty (representing an int that should be displayed as a LightLayer)
|
LightLayerMaskPropertyDrawer(Rect, SerializedProperty)
Provide a specific property drawer for LightLayer (without label)
Declaration
public static void LightLayerMaskPropertyDrawer(Rect rect, SerializedProperty property)
Parameters
| Type |
Name |
Description |
| Rect |
rect |
The rect where to draw
|
| SerializedProperty |
property |
The SerializedProperty (representing an int that should be displayed as a LightLayer)
|
LoadAsset<T>(String)
Declaration
public static T LoadAsset<T>(string relativePath)
where T : Object
Parameters
| Type |
Name |
Description |
| String |
relativePath |
|
Returns
Type Parameters
PropertyFieldWithFlagToggleIfDisplayed<TEnum>(TEnum, SerializedProperty, GUIContent, SerializedProperty, TEnum, TEnum, Action<SerializedProperty, GUIContent>)
Declaration
public static void PropertyFieldWithFlagToggleIfDisplayed<TEnum>(TEnum v, SerializedProperty property, GUIContent label, SerializedProperty override, TEnum displayed, TEnum overrideable, Action<SerializedProperty, GUIContent> drawer = null)
where TEnum : struct, IConvertible
Parameters
| Type |
Name |
Description |
| TEnum |
v |
|
| SerializedProperty |
property |
|
| GUIContent |
label |
|
| SerializedProperty |
override |
|
| TEnum |
displayed |
|
| TEnum |
overrideable |
|
| Action<SerializedProperty, GUIContent> |
drawer |
|
Type Parameters
PropertyFieldWithOptionalFlagToggle<TEnum>(TEnum, SerializedProperty, GUIContent, SerializedProperty, Boolean, Action<SerializedProperty, GUIContent>)
Declaration
public static void PropertyFieldWithOptionalFlagToggle<TEnum>(TEnum v, SerializedProperty property, GUIContent label, SerializedProperty override, bool showOverrideButton, Action<SerializedProperty, GUIContent> drawer = null)
where TEnum : struct, IConvertible
Parameters
| Type |
Name |
Description |
| TEnum |
v |
|
| SerializedProperty |
property |
|
| GUIContent |
label |
|
| SerializedProperty |
override |
|
| Boolean |
showOverrideButton |
|
| Action<SerializedProperty, GUIContent> |
drawer |
|
Type Parameters
ReserveAndGetFlagToggleRect()
Declaration
public static Rect ReserveAndGetFlagToggleRect()
Returns
ResetMaterialKeywords(Material)
Declaration
public static bool ResetMaterialKeywords(Material material)
Parameters
| Type |
Name |
Description |
| Material |
material |
|
Returns