//Inspector GUI: public override void OnInspectorGUI() { EditorUtilities.ComponentRequired(typeof(MLPrivilegeRequesterBehavior)); EditorUtilities.SensitivePrivilegeRequired(MLPrivileges.RuntimeRequestId.LocalAreaNetwork); DrawDefaultInspector(); }
//Inspector GUI: public override void OnInspectorGUI() { EditorUtilities.ComponentRequired(typeof(Transmission)); EditorUtilities.ComponentRequired(typeof(PrivilegeRequester)); EditorUtilities.SensitivePrivilegeRequired(MLRuntimeRequestPrivilegeId.PwFoundObjRead); DrawDefaultInspector(); }
//Inspector GUI: public override void OnInspectorGUI() { EditorUtilities.ComponentRequired(typeof(Transmission)); if (float.Parse(MLVersion.MLSDK_VERSION_NAME.Split('.')[1]) < 23) { int PwFoundObjRead = 201; EditorUtilities.SensitivePrivilegeRequired((MLPrivileges.RuntimeRequestId)PwFoundObjRead); } DrawDefaultInspector(); }