EyEengines.ExtractEmbededFiles.UnityEditor.dll[v0.1]
This modules provides the end user two simple classes:
- ExtractEmbededFiles: A static class with functions to extract a set of files from a dll.
- InitializeOnEditorReloadedAttribute: An attribute that can be applied to any static (action-signature) functions, so that they are executed after loading is complete, during the first Update cycle of Editor.update.
Extract embedded
The ExtractEmbededFiles class allows other DLL's to extract files from themselves, to be stored in the file system. This can be useful when a DLL requires certain files to be in place to function.
To use this class:
- You must first embed a source file to be extracted, into the DLL. This is done by in compiler, like Visual Studio.
- Then, when it's time to extract your files from the DLL, invoke the static function ExtractEmbededFiles.PromptUserToExtractFilesIfNotInPlaceAlready. This function takes a list of ExtractEmbededFiles.ExtractInfoClasses instances as a way to bundle together the strings required to extract the file, along with some import flags. These strings are the filename, the path it should be extracted to, and the namespace in the DLL where the file can be found.
This will extract the files to the application's data folder (usually the assets folder), and depending on the import options for a file, will import textures as icons or sprite for use in unity editor. Later version will include the ability to specify other kinds of import options.
example: ExtractEyeEnginesLogo.cs
using System.Collections.Generic;
using UnityEditor;
{
[InitializeOnLoad]
public class ExtractEyeEnginesLogo
{
static ExtractEyeEnginesLogo()
{
ExtractEmbededFilesInEditor.PromptUserToExtractFilesIfNotInPlaceAlready(new List<ExtractEmbededFiles.ExtractionInfo>
{
new ExtractEmbededFiles.ExtractionInfo("EyEengines128.JPG", "Gizmos\\EyEengines\\", "EyEengines.EditorUnity.Tools",false,true),
new ExtractEmbededFiles.ExtractionInfo("EyEenginesSprite.prefab", "Gizmos\\EyEengines\\", "EyEengines.EditorUnity.Tools",false,false),
new ExtractEmbededFiles.ExtractionInfo("EyEengines128.JPG.meta", "Gizmos\\EyEengines\\", "EyEengines.EditorUnity.Tools",false,false),
new ExtractEmbededFiles.ExtractionInfo("EyEenginesSprite.prefab.meta", "Gizmos\\EyEengines\\", "EyEengines.EditorUnity.Tools",false,false)
});
}
}
}
InitializeOnEditorReload
To use the InitializeOnEditorReload Attribute, apply it to any static function. All attributed functions will be invoked during the first invocation of EditorApplication.Update. This attribute is similar to the [InitializeOnLoadMethodAttribute] but occurs later during initialization. It has the option, which is the default, to NOT execute when in play-mode. This behavior can be overridden, by passing true to the optional parameter of the attribute. example: InitializeOnEditorReloadExample.cs
using UnityEngine;
using UnityEditor;
{
public class InitializeOnEditorReloadExample
{
static public class ClassThatInitializesOnLoad
{
public static string someData = "NotInitialized";
[InitializeOnLoadMethod]
public static void OnLoad()
{
Debug.Log("InitializeOnLoadMethod: initializing data now");
someData = "Initialized";
}
}
static public class YourCustomClassThatRequiresTheThirdPartyClassIsAlreadyInitialized
{
[InitializeOnEditorReloaded]
public static void AfterLoaded()
{
Debug.Log("InitializeOnEditorReloaded: third party data is: " + ClassThatInitializesOnLoad.someData);
}
}
}
}
|
class | EmbededXMLTooltip |
| This class is sued to parse Visual Studio generated XML containing class documentation, and use this to lookup summary comments on class members, so they can be used as tool-tips at runtime. This class requires some very specific setup is done for it to function properly. It requires that an XML file containing the documentation be present, either in the asset folder, or embedded within a DLL. The name of the xml file name is either extracted from provided type's assembly name, or from a member in that type named "XMLTooltipFileNameHint" (which is accessed via reflection).
|
|
class | ExtractEmbededFiles |
| Provides functions used to get images from, and extract files a .dll, into the unity Project folder. Upon invocation, the main function,RegisterFileForExtraction, will check to see if the files exist in the file system, and if not extracts then saves them to the project folder. Optionally, extracted files, may be passed through the ConvertTextureAssetToIcon function. This is done automatically when the ExtractionInfo.importTextureAsIcon for the file to extract is set to true.
|
|
class | ExtractEmbededFilesInEditor |
| Provides functions used to get images from, and extract files a .dll, into the unity Project folder. Upon invocation, the main function,RegisterFileForExtraction, will check to see if the files exist in the file system, and if not extracts then saves them to the project folder. Optionally, extracted files, may be passed through the ConvertTextureAssetToIcon function. This is done automatically when the ExtractionInfo.importTextureAsIcon for the file to extract is set to true.
|
|
struct | ExtractEmbededFiles.ExtractionInfo |
| Stores the source and destination information for a file that may, potentially, be extracted from a DLL into the file system.
|
|
class | InitializeOnEditorReloadedAttribute |
| This attribute can be applied to static void parameterless functions.
This will cause those functions to be invoked during the first cycle of EditorApplication.update. So, the editor will have finished loading.
|
|
class | InitializeOnEditorReloadedAttribute.InitializeOnEditorReloadedSetup |
| This class is used internally, and not intended for end user use. Invokes OnLoad, and ensures that all methods found with the InitializeOnEditorReloadedAttribute applied will be invoked upon the first EditorApplication.Update cycle. This happens by hooking to the EditorApplication.Update during InitializeOnLoad. Then, when the delegate is invoked: executing all the methods found with this attribute, then unhooking from the delegate.
|
|
This version of the SerializableTree<T> class is generally easier for storing objects,...
Definition: SerializableTree.cs:42
override Bounds GetLocalBounds()
Attempts to get the local bounds of the mesh rendered by the MeshRenderer. Requires a meshFilter comp...
Definition: MeshRendererToGraphicsInterfaceAdapter.cs:38
UniqueStringID(int IDnumber, string s)
Will generate UniqueStringID stats for this string, and use the provided ID value.
Definition: UniqueIDString.cs:47
Definition: CircularBufferPropertyDrawer.cs:7
Implement this interface on any class that draws to the screen, to provide it with a common way to ch...
Definition: IGraphicsColorInterface.cs:13
static List< MemberInfo > FindAllPublicAndPrivateMembersInObjectsTypeAndBaseTypes(object instance, MemberTypes memerTypesToInclude=MemberTypes.Field|MemberTypes.Method|MemberTypes.Property)
Examine this type of the object provided, and finds all it's members, public and private,...
Definition: TypeExtension.cs:24
bool Contains(object value)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:245
Example showing usage of DefaultExposedMemberEditor to display instances of the WeaponType class.
Definition: WeaponTypeEditor.cs:9
static Camera previewCamera
this is the preview camera that will be used for all previews.
Definition: EditorWithPreview.cs:42
static Material previewMaterial
Reference to the dynamically created preview material, which uses the previwShader
Definition: EditorWithPreview.cs:50
static void SetViewableIncludingDecendants(GameObject decendantsOf, bool visibile)
Searches object and descendants for IGraphicsViewable components, and sets the isViewalble member to ...
Definition: IGraphicsViewable.cs:35
A NodeEnumberator that iterates though the node itself, and all it's descendants. First it will loop ...
Definition: SerializableTreeBase.cs:476
int GetInt(string key)
Returns the value corresponding to key in the preference file if it exists.
This class provides a way to access a Unity TextMesh via some of the IGraphics interfaces: IGraphicsC...
Definition: TextMeshToViewableColorInterfaceAdapter.cs:14
string ToString(bool includeNewlines=true)
Output transform storage as single line string, useful for debugging.
Definition: TransformDictionaryStorage.cs:178
void DeserializedDetectionEnabledList()
Reads from SelectOptions string array and for every DeltaAttribue named on the list,...
Definition: DeltaMonitor.cs:429
ExposedObjectMembers exposedObjProperties
This ExposedObjectMembers computes and cashes the properties that will be exposes by this PropertyDra...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:39
Custom Editor case class. Inherited from to display specific types of BaseRendererToGraphicsInterface...
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:17
override int GetHashCode()
This struct has dynamic values, and therefore should not be used as a key. This function will simply ...
Definition: StoredFullTransform.cs:255
int serializableDataIndex
Only used when serializing-deserializing; specifies where, (what index) in the serializable list of t...
Definition: SerializableTreeBase.cs:101
void Add(KeyValuePair< TKeyType, TValueType > item)
adds the provided KeyValuePair{TKeyType, TValueType} to the dictionary. This object contains BOTH the...
Definition: SerializableDictionary.cs:222
Example of a ScriptableObject base class that implements ExposeMember.
Definition: InventoryObjectType.cs:17
Dictionary< Camera, MeshAndMaterialConfigSet > perCameraMesh
dictionary class the uses each camera as the key, and the mesh that will drawn to it,...
Definition: PerCameraMeshAndMaterials.cs:71
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Draws the deltaMonitor control
Definition: DeltaMonitorUnityDrawer.cs:30
This class extracts upon creation, and then buffers, all the exposedProperties of a given object....
Definition: ExposedObjectMembers.cs:18
The ReflectionsExtensions Class which provides some additional and convenience Reflection functions.
Definition: ReflectionExtensions.cs:14
delegate bool EditorTestObject(Object objectToCheck)
defines a delegate signature that takes and object and returns bool used to define both EditorIsObjec...
Dictionary< string, ExposedMember > groupEnableControlMembers
Stores the exposed members (of boolean type) that control the display state of groups....
Definition: ExposedObjectMembers.cs:31
static bool HasChangedByObject(this Transform transformToCheck, object whosAsking, bool includeDecendants=false)
This function will return the HasChanged value of this component's transform, uniquely for the 'whosA...
Definition: CheckTransformChangedSinceLastCheckByObject.cs:40
void SetFloat(string key, float value)
Sets the value of the preference identified by key to the provided value in PlayerPrefs.
Definition: PlayerPrefInterface.cs:74
bool DontResetIfDisabled
DontResetIfDisabled is a NAMED PARAMETER for this attribute. Used for optimization,...
Definition: DeltaAttribute.cs:139
static void SetFoldoutState(SerializedProperty property, bool state)
Set the foldout state for the provided SerializedProperty. Also sets the state in the dictionary if S...
Definition: PerObjectNameBooleans.cs:342
static IEnumerable< Transform > TransformAndAllDecendants(this Transform transform)
Extension provided to enable for-each through transform and all descendants, rather than just childre...
Definition: TransformExtensions.cs:383
StoredTransform(Vector3 position, Quaternion orientation, Vector3 scale)
Constructor used to create a new StoredTransform, given a Translation, Rotation and Scaling component...
Definition: StoredTransform.cs:164
This class exists solely to setup the DeltaDetector Debug Category, on Load.
Definition: DeltaDetectorDebug.cs:10
override void OnInspectorGUI()
Override this function if you would like to change how the inspector of the editor is drawn....
Definition: EditorWithPreview.cs:103
string group
The group may reference a member boolean by name, or start with the string "Foldout"; in which case t...
Definition: ExposeMemberAttribute.cs:88
static bool HasBoolKey(this IStorePreferences interfaceReference, string key)
Check for the existence of key in prefBase
Definition: MultiKeyPrefHelper.cs:224
bool alwaysLoadAndSaveOnValueAccess
Specifies weather this preference should be automatically re-loaded or re-saved, every-time the value...
Definition: PrefOptionArrayBase.cs:35
static bool IsArrayIdentical< T >(this T[] thisArray, T[] otherArray, System.Comparison< T > compareFunction)
Compares all elements in the invoking, thisArrray, with all the elements in the otherArray,...
Definition: CollectionExtensions.cs:89
void ForceMeshRegenerationForAllCamerasNow()
Immediately calls UpdateMesh for all registered cameras. Not called internally.
Definition: PerCameraMeshAndMaterials.cs:373
void GenerateSnapshot(Quaternion rotation, Vector2 size, ref RenderTexture snapShot)
This function is the "magic" part of the class. It will manipulate the diorama objects,...
Definition: EditorWithPreview.cs:391
This class exists solely to setup the VendorPreferences Debug Category, on Load. It is tagged so Unit...
Definition: AssetPreviewCatDebugSetup.cs:13
string Key
Read-only accessor to get the key used to store this preference. The key can only be set with the con...
Definition: PrefOptionArrayBase.cs:121
Definition: EyEenginesPrefAttribute.cs:3
Node node
Definition: SerializableTreeBase.cs:373
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Draws the deltaMonitor control
Definition: DeltaMonitorDrawer.cs:32
override void SetValue(System.Object value)
Sets the value of the collection element reference by this ExposedCollectionMemberElement.
Definition: ExposedMember.cs:680
static void Log(int category, params object[] message)
This function will take an array of strings, and if the specified category is enabled,...
Definition: CatDebug.cs:510
static void DrawPrefControl(this IAccessPreferences< string > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:42
static bool IsObjectAPreFab(Object testObject)
Functions inside of Editor only code, this function will return false when not running in the Editor....
Definition: GameObjectExtensions.cs:109
bool logEnabled
specifies if this category is enabled for logging. When false, it will not prevent any logs made with...
Definition: ConditionalDebugCategoryRegistrar.cs:26
bool ExposePropertyLayout(string name, GUIContent overrideLabel=null, GUILayoutOption[] guiOptions=null, bool useGroups=true)
Layout variant of the ExposeProperty function This function looks-up the exposed-property with the sp...
Definition: ExposedObjectMembers.cs:188
bool HasColor(int matIndex)
Specifies if the material this instance uses, specified by the index has a _Color
Provides functions used to get images from, and extract files a .dll, into the unity Project folder....
Definition: ExtractEmbededFiles.cs:18
string filename
File name of the image in the dll, and the filename it will be given when extracted from the DLL and ...
Definition: ExtractEmbededFiles.cs:34
override int GetHashCode()
This struct has dynamic values, and therefore should not be used as a key. This function will simply ...
Definition: StoredTransform.cs:454
virtual IEnumerator< T > GetEnumerator()
default generic enumerator
Definition: SerializableTreeBase.cs:1032
static float cleanupTimeDelay
This timer specifies how often a cleanup of the dictionary should run.
Definition: PerObjectNameBooleans.cs:125
static EditorPrefOption< bool > useDefaultPropertyDrawerForMesh
boolean EditorPref Option that stored whether or not to use the default property drawer for meshes,...
Definition: EditorToolsOptions.cs:47
TransformChildrenDictionaryStorage(Transform transformToStore)
Constructor Generates the TransformStorageDictionary using the provided transform.
Definition: TransformChildrenDictionaryStorage.cs:23
This class exists solely to setup the DeltaDetector Debug Category, on Load.
Definition: DeltaDetectorDebugSetup.cs:17
static T CreateInstance< T >(string name)
a simple convenience function used to Instantiate, cast and set the name of a Scriptable object
Definition: ResourceSystem.cs:28
override UniqueStringID GenerateListScrollPositionAndDrawSizeKey(ExposedMember property, string label)
Creates a new UniqueStringID from the provided property, and optionally, the provided label....
Definition: LimitedListMember.cs:94
Material[] defaultMaterials
Material used to render the mesh. Each material is rendered to a different sub-mesh of the mesh....
Definition: PerCameraMeshAndMaterials.cs:47
override int GetHashCode()
This class is dynamic and does not provide unique hash codes
Definition: TransformAndDecendantStorage.cs:65
override bool GetPropertyExpanded(SerializedProperty listProperty)
Used to lookup the last user-selected expanded state of the specified property.
Definition: LimitedListProperty.cs:923
string alternatelabel
This value will be used for the Label, but only when the boolean referenced by alternateLabelConditio...
Definition: ExposeMemberAttribute.cs:114
string conditionalDisplayMemberName
Name, identifier of the (sibling) bool member, in object containing the exposed member,...
Definition: ExposeMemberAttribute.cs:101
override string ArrayName(SerializedProperty listProperty)
Used to compute the label that will be Displayed for the list
Definition: LimitedListProperty.cs:913
bool isViewableIncludesDecendants
Specified weather the isViewable member will check descendants for view ability.
Definition: TextMeshToViewableColorInterfaceAdapter.cs:89
override int GetHashCode()
This struct has dynamic values, and therefore should not be used as a key. This function will simply ...
Definition: TransformAndDecendantStorage.cs:312
Camera thisCamera
Internal reference to the required Camera component
Definition: CallbackCamera.cs:46
This class contains static function for drawing large lists. Optimized to draw only the part of the l...
Definition: LimitedListProperty.cs:25
static void LerpScale(this Transform transform, Vector3 finalSclae, float fraction)
Convenience function used to get, lerp, and set the transform's scale
Definition: TransformExtensions.cs:87
bool checkEnabled
If this is false, the comparison of values wont even be performed.
Definition: DeltaAttribute.cs:37
Quaternion localRotation
Accessor to read and write the rotation value stored in the local StoredTransform member.
Definition: StoredFullTransform.cs:43
void Copy(StoredTransform transform_to_copy)
Copies the source StoredTransform into the calling StoredTransform's variables. Does not create a new...
Definition: StoredTransform.cs:243
This version of the class is generally easier for storing objects, because it does not need to be ove...
Definition: SerializableTreeBase.cs:1062
System.Action submitHandler
reference to a function that should be called when the user clicks "submit" on a menu item.
Definition: MenuTree.cs:18
static GetObjectPathEditorCallback editorAdapterVersion
When the editor is present this delegate reference will be automatically populated with a valid Edito...
Definition: PlayerPrefInterface.cs:150
static Texture2D ConvertToTexture(this Gradient gradientToTexturize, int textureWidth, bool appendReverseGradient=true)
Extension function for Gradients. Converts the gradient into a texture object. The texture width defi...
Definition: GradientToTexture.cs:22
Editor to draw StaticMeshPerCameraByList components .
Definition: StaticMeshPerCameraByListEditor.cs:14
NodeAndAllDecendantsEnumerator(Node node)
Definition: SerializableTreeBase.cs:430
virtual bool HasColor()
Specifies if the material this instance uses has a _Color
Definition: CustomRenderer.cs:321
This editor will use the BaseRendererToGraphicsInterfaceAdapterEditor class it derives from,...
Definition: MeshRendererToGraphicsInterfaceAdapterEditor.cs:13
virtual void UpdateMeshForCamera(Camera cam, ref Mesh meshToFill, Matrix4x4 view, Matrix4x4 projection)
This function updates the mesh that will be drawn for the provided camera. It is called by internal c...
Definition: PerCameraMeshAndMaterials.cs:106
A Monobehavior class that contains details about a set of soldiers, and how they are controlled....
Definition: Squad.cs:13
static EditorPrefOption< bool > DrawBoxInFoldoutArea
Weather or not to draw a box in the foldout area of ExpandableObjectPropertyDrawers.
Definition: EditorToolsOptions.cs:65
static bool GetBool(UniqueStringID key)
Returns the boolean value of the provided key.
Definition: PerObjectNameBooleans.cs:185
bool Equals(StoredTransform trasf, bool localNotWorld)
Specific version of equality function used to compare with a TransormStorage object....
Definition: StoredFullTransform.cs:229
This class contains functions that can be used to extract the ExposedMembers of a given object,...
Definition: MemberExposerFunctions.cs:43
static void DrawPrefControl(this IAccessPreferences< Color > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:64
bool AddChild(Node parent, T data, out Node newNode)
called by both the UI and runtime users of the tree. This function will instantiate a new node,...
Definition: SerializableTreeBase.cs:779
void RemoveAt(int index)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:178
This class exists solely to setup the Debug Categories for this module, on Load. Contains a static se...
Definition: UnityToolsCatDebug.cs:19
int BufferEndIndex
index to the last valid item pushed into the buffer.
Definition: CircularArray.cs:322
void ExposeAllPropertiesLayout()
Shortcut function to MemberExposerFunctions.ExposeAllPropertiesLayout, that passes all the appropriat...
Definition: ExposedObjectMembers.cs:241
static bool GetCategoryState(int catID)
Returns the enabled/disabled state of the specified category. if not registered, returns false.
Definition: ConditionalDebugCategoryRegistrar.cs:296
void SetPropertyBlock(MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name.
virtual bool isViewable
Return true if the rendererRef is enabled. Not affected by weather or not the object is actually visi...
Definition: TextMeshToViewableColorInterfaceAdapter.cs:96
static ValueType LoadAndCast(string key)
This function will attempt to retrieve from storage, and return, the preference value from the PrefIn...
Definition: PrefOptionBase.cs:209
override int GetHashCode()
This struct has dynamic values, and therefore should not be used as a key. This function will simply ...
Definition: TransformDictionaryStorage.cs:143
static Vector3 GetVector3(this IStorePreferences interfaceReference, string key)
Gets the Vector3 value associated with this key, from prefBase. Behind the scenes,...
Definition: MultiKeyPrefHelper.cs:48
ExposedObjectMembers(object objectToExpose)
Constructor
Definition: ExposedObjectMembers.cs:67
This class configures unity such that it will invoke the appropriate functions when EditorApplication...
Definition: ProjectViewIcons.cs:17
PrefOptionBase(ValueType _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: PrefOptionBase.cs:121
These sample classes don't actually do anything useful, they just provide some examples of how DeltaA...
Definition: AirCraft.cs:9
bool Equals(UniqueStringID obj)
Checks if the provided object is not null, and invokes operator== if so, and returns false if not.
Definition: UniqueIDString.cs:133
A specific non-generic type of SerializableDictionary. The Key is a Transform reference,...
Definition: LocalTransformDictionayStorage.cs:13
virtual void Save()
The Save function will attempt to store the current member _value into PrefInterface,...
Definition: PrefOptionArrayBase.cs:155
static void recordUndo(object undoObject, ExposedMember field)
Check that the undoObject is not null, and if so, records it via undo
Definition: MemberExposerFunctions.cs:1222
This static class is used to store a singleton instance for each type of IStorePreferences
Definition: PrefOptionBase.cs:12
object exposedObject
reference to the exposed object that contains the fields to be exposed.
Definition: ExposedObjectMembers.cs:40
static Color GetColor(this IGraphicsMultiMaterialPropertyBlockInterface blockInterfaceGetColorFrom, int matIndex)
Extension function for IGraphicsMultiMaterialPropertyBlockInterface's. Gets the MaterialPropertyBlock...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:191
OptionNames detectionEnabledList
This is one of the only serialized field; The fullList member of the OptionNames will be overwritten ...
Definition: DeltaMonitor.cs:89
virtual void OnBeforeSerialize()
This function is called just before Unity serializes the values. Implementing the ISerializationCal...
Definition: DeltaMonitorSerialized.cs:35
ExposedMember FindProperty(string name)
Function used to find the named ExposedMember buffered in this object.
Definition: ExposedObjectMembers.cs:144
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:462
bool HasKey(string key)
Returns true if key exists in PlayerPrefs.
Definition: PlayerPrefInterface.cs:58
static Vector3 TransformPointLocalOnly(this Transform transform, Vector3 point)
utility function that applies only the transforms LOCAL transformation values to the provided point....
Definition: TransformExtensions.cs:168
T dataValue
direct reference to the Data Value this node stores (an object of type T).
Definition: SerializableTreeBase.cs:97
override void OnFoldOutGUI(Rect position, SerializedProperty property, GUIContent label)
Defines what to draw when the property has been expanded (folded-out).
Definition: DefaultExpandablePropertyDrawer.cs:55
void SetString(string key, string value)
Sets the string value of the preference identified by key to the provided value in EditorPrefs.
Definition: EditorPrefInterface.cs:104
The node itself, and all descendants are enumerated, in generation order (all children,...
static string GetClassMemberNodeFromXMLinDLL(System.Reflection.Assembly containingAssm, string nameSpace, string XmlFileNameinDLL, string classNameMemberName, string nodeName, bool removeWhitespace=true, bool removeCRLF=true)
Will attempt to extract the classNameMemberName xml Summary data from the file embedded in the dll th...
Definition: EmbededXMLTooltip.cs:130
virtual bool HasColor()
Returns weather or not the material(first material on renderer) actually has a color value that can b...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:189
float min
get/set the minimum value the exposed property may take. usually, just assigned by the constructor.
Definition: ExposeMemberAttribute.cs:24
static void RegisterDelegates(System.Type typeDelegateExposes, ExposeDelegatesForType toRegister)
Allows the User to Optionally specify drawer delegates for additional exposed-property types,...
Definition: MemberExposerFunctions.cs:130
string conditionalOptionName
Attribute's option name, used to create a user interface allowing a human to uniquely identify this a...
Definition: DeltaAttribute.cs:32
ExposeDelegatesForType(ExposeMemberLayoutDelegate _exposePropertyLayout, ExposeMemberDelegate _exposeProperty, ExposeMemberHeightDelegate _exposePropertyHeight)
Each instance of this class bundles and stores the three delegates that are used to draw the property...
Definition: MemberExposerFunctions.cs:113
Object GetAssetAtPath(string key)
Loads the resource at the path specified in the value associated with this key, from prefBase....
Definition: PlayerPrefInterface.cs:99
Used to Automatically draw a DeltaMonitorUnity variable as a MaskFied, allowing the user to select wh...
Definition: MonoDeltaCallbackDrawer.cs:22
static List< Type > StaticGetAllDerivedClasses(Type baseClass, bool sortResult=false, bool sortByNameNotFullName=true)
This function will find and example all assemblies in the AppDomain. It will search them for all ty...
Definition: ReflectionExtensions.cs:58
bool isViewableIncludesDecendants
When true, isViewable will return true if this object or ANY descendant IGraphicsViewable has isViewa...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:266
static EditorPrefOption< bool > SerializedDictionaryPropertyDrawerPutFoldoutInBox
Specifies if LimitedListPropertyDrawers will draw a box with a border around the foldout area.
Definition: EditorToolsOptions.cs:117
static void Reciprocalize(this Vector3 vec)
computes 1 divided by the parameter's coordinate values, and sets itself to that result.
Definition: Vector3Extensions.cs:205
static Vector3 Scaled(this Vector3 vec, float scalex, float scaley, float scalez)
Scales the Vector parameter by the x,y,z parameters, and returns the result. The calling vector is no...
Definition: Vector3Extensions.cs:50
static float foldoutDarkenFactor
Set by project-settings specified how MUCH to darken each time BeginDarken is called.
Definition: EditorUtil.cs:122
void OffsetIndexBy(ref int index, int offset)
Definition: CircularArray.cs:136
static Bounds TransformBoundsRelativeToAncestorViaIteration(this Transform transform, Transform ancenstorTransform, Bounds bounds)
This version exists soles as a sanity check for the above method
Definition: TransformExtensions.cs:260
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Computes the height of a DeltaMonitor property control when drawn.
Definition: DeltaMonitorUnityDrawer.cs:43
Definition: EditorWithPreview.cs:5
override string ToString()
Writes the transformation values in the tree to a string.
Definition: TransformStorageTree.cs:127
virtual float InternalGetLimitedListPropertyHeight(T property, GUIContent label)
Drawn height of limited list. The height of the control is computed once and cashed....
Definition: LimitedListProperty.cs:599
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:487
This class provides functionality to easily register categories for use by CatDebug....
Definition: ConditionalDebugCategoryRegistrar.cs:157
override int GetHashCode()
This struct has dynamic values, and therefore should not be used as a key. This function will simply ...
Definition: TransformStorageTree.cs:117
static Object InstanceIDToObject(int instanceID)
Return null when not running in the editor. Otherwise, calls the EditorUtility.InstanceIDToObject fun...
Definition: GameObjectExtensions.cs:147
bool IsFixedSize
IList interface function. Returns true because the list size cannot be modified.
Definition: CircularArray.cs:36
abstract Bounds GetBounds()
This function will allow the preview camera to be properly placed, such that it encompass the bounds ...
object SyncRoot
ICollection interface function. Returns SyncRoot object of the internal array
Definition: CircularArray.cs:45
Simple EditorWindow with a single field for entering a string.
Definition: RenamePopupWindow.cs:15
string name
name provided by the user that registered this debug category
Definition: ConditionalDebugCategoryRegistrar.cs:22
Stores the GUI status. Status includes: the indent level, hierarchyMode, and enabled/disabled state....
Definition: EditorUtil.cs:368
static void OnEditorUpdate()
Callback function to be executed, once, on EditorApplication.update. It is immediately removed from t...
Definition: InitializeOnEditorReloadedAttribute.cs:52
override float GetFoldoutPropertyHeight(SerializedProperty property, GUIContent label)
Gets the height of the foldout section only.
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:58
static void Init()
this function is Called on unity's InitializeOnLoad. It registers the "Vendor Category Preferences" D...
Definition: UnityToolsCatDebug.cs:66
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Computes the height of a DeltaMonitor property control when drawn.
Definition: DeltaMonitorDrawer.cs:50
object objectToMonitor
This is the object that contains variables with CheckForChangeAttributes, and is assigned during cons...
Definition: DeltaMonitor.cs:72
virtual bool HasKey()
This protected function is used to check if the key exits in PrefInterface. Used before attempting to...
Definition: PrefOptionBase.cs:359
bool HasKey(string key)
Returns true if key exists in the preferences.
This class contains an internal array, and an indexer override to access the array elements....
Definition: CircularArray.cs:15
static bool Contains< T >(this IEnumerable< T > list, T value)
Given the specified enumerable collection, and element value, this function will check to see if any ...
Definition: CollectionExtensions.cs:49
This namespace is not included in the DLL modules, it contains code samples intended for documentatio...
Definition: ExtractEyeEnginesLogo.cs:6
This component will ONLY affect other components, on this object and it's descendants,...
Definition: DecendantIViewableToggler.cs:13
virtual float InternalDraw(Rect position, SerializedProperty property, GUIContent label, bool heightOnly)
Internal function handles both drawing, and height computations. Weather or not it will draw controls...
Definition: CircularBufferPropertyDrawer.cs:69
static void LayoutSeperator(bool addSpace)
Draws a horizontal Separator using AutoLayout
Definition: EditorUtil.cs:56
static EditorPrefOption< bool > showPreviewsForProjectIcons
Boolean option that defines if the EditorWithPreview should be used to generate icons in the Project ...
Definition: PreviewPrefs.cs:82
This attribute affects exposed properties in the same way that the Unity attribute Range does....
Definition: ExposeMemberAttribute.cs:14
virtual void DrawMeshForCamera(Camera cam)
Override this function if you would like to change the way the mesh is rendered, or add additional fu...
Definition: PerCameraMeshAndMaterials.cs:128
MaterialPropertyBlock materialProperties
Stores the MaterialPropertyBlock of the MaterialBlock. This value can be changes to affect the about ...
Definition: MaterialConfig.cs:23
Shows how to use the DefaultExposedMemberEditor class to draw all the ExposedMembers in InventoryObje...
Definition: InventoryTypeEditor.cs:12
static Vector2 YZ(this Vector3 vec)
Converts the Y and Z coordinates of a Vector3 into a new Vector2's x and y coordinates.
Definition: Vector3Extensions.cs:38
static void SetCategoryLogToFileOnDisabledState(int catID, bool state)
Sets and saves the enabled/disabled state of the specified category.
Definition: ConditionalDebugCategoryRegistrar.cs:350
void DeleteKey(string key)
Removes key and its corresponding value from the preferences.
Definition: XmlPreferenceInterface.cs:190
Object GetAssetAtPath(string key)
Loads the resource at the path specified in the value associated with this key, from prefBase.
static void UnRegisterCategory(string catName)
Removes the specified category from storage. It's index may be reassigned after this.
Definition: ConditionalDebugCategoryRegistrar.cs:253
static T GetCiricularIndexedElement< T >(this T[] array, int circularIndex)
Makes indexes to an array "circular", looping around from the end back to the beginning....
Definition: CollectionExtensions.cs:192
bool Equals(Transform unityTransform, bool localNotWorld)
Specific version of equality function used to compare with a Transform object. It allows the caller t...
Definition: StoredTransform.cs:415
abstract bool AllowCreation()
Descendants must override this abstract function to either compute or specify whether to enable the c...
ExtractionInfo(string _filename, string _assetPath, string _dllNamespace)
Constructor for a single File's ExtractionInfo This version will extract the file from the DLL that i...
Definition: ExtractEmbededFiles.cs:105
bool Equals(TransformAndDecendantStorage storageToCheck)
Use to compare with another existing TransformAndChildrenStorage. Compare values in both storage obje...
Definition: TransformAndDecendantStorage.cs:209
RunTime Version TransformStorage CataegoricalDeug Setup
Definition: TransformStorageCatDebugSetup.cs:10
MemberInfo innerFieldRef
This field is only used in conjunction with checkMember, when using the CheckMember named Parameter (...
Definition: DeltaAttribute.cs:87
override float InternalGetLimitedListPropertyHeight(SerializedProperty property, GUIContent label)
Checks the provided Serialized Property is an array/list, and invokes base class version of this func...
Definition: LimitedListProperty.cs:856
TRendererType rendererRef
Accessor to the Renderer being adapted. If no renderer has been specified, it will attempt to find a ...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:60
Type StoreAsType
StoreAsType is a NAMED PARAMETER for this attribute. This parameter should be used when you want to...
Definition: DeltaAttribute.cs:126
override Bounds GetLocalBounds()
Checks the sprite renderer on this object for a valid sprite, and if one is found,...
Definition: SpriteRendererToGraphicsInterfaceAdapter.cs:20
Vector3 TransformDirection(Vector3 direction)
Function used to Transform a provided direction by this storedTransform. In detail: this function app...
Definition: StoredTransform.cs:322
Quaternion rotation
Accessor to read and write the rotation value stored in the world StoredTransform member.
Definition: StoredFullTransform.cs:70
void ApplyMaxSet(int newMaxSet)
this function is used to specify a new MaxSet value. Only Delta attribute with an assigned set LOWER ...
Definition: DeltaMonitor.cs:226
static void PromptUserToExtractFilesAndPotentiallyOverwrite(bool logToConsole=true, bool promptOnCreation=true)
Prompts the user to create/overwrite folders and files as necessary, and if granted permission,...
Definition: ExtractEmbededFilesInEditor.cs:76
int indentLevel
The recorded value of EditorGUI.indentLevel
Definition: EditorUtil.cs:373
static void SetGUIStateToDefault()
Assigns the states in the defaultState to the current GUI state.
Definition: EditorUtil.cs:426
void DeleteKey(string key)
Removes key and its corresponding value from PlayerPrefs.
Definition: PlayerPrefInterface.cs:26
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
The OnGUI function handles the actual drawing an OptionNames variable as a standard mask Field
Definition: OptionNamesDrawer.cs:20
override void SetPropertyBlock(MaterialPropertyBlock source)
Invokes the version of this function takes an material index parameter, and passes a 0 for the materi...
Definition: PerCameraMeshAndMaterials.cs:547
static bool HasColorKey(this IStorePreferences interfaceReference, string key)
Check for the existence of key +"R" in prefBase
Definition: MultiKeyPrefHelper.cs:158
virtual bool IsCallbackNeeded()
Detects change in camera transform and returns true if change detected. Override to change/add behavi...
Definition: CallbackCamera.cs:175
override void AssignToTransform(Transform transformToAssignTo, bool restoreRootLocalNotWorld=true)
Use to assign the values stored in the TransformStorageTree to an actual UnityEngine....
Definition: TransformStorageTree.cs:64
static void FoldoutObjectProperty(Rect position, SerializedProperty prop, GUIContent label, System.Type type, bool allowSceneObjects, bool allowCreation, params GUILayoutOption[] options)
Manual-Layout version of FoldoutObjectProperty property-drawing function. Shows a standard Unity Obje...
Definition: EditorUtil.cs:341
static bool HasVector3Key(this IStorePreferences interfaceReference, string key)
Check for the existence of key +"X" in prefBase
Definition: MultiKeyPrefHelper.cs:33
static List< MemberInfo > FindAllPublicAndPrivateMembersInTypeAndBaseTypes(this Type typeToSearch, MemberTypes memerTypesToInclude=MemberTypes.Field|MemberTypes.Method|MemberTypes.Property)
Examine this type of the object provided, and finds all it's members, public and private,...
Definition: TypeExtension.cs:37
MenuInfo()
Default Constructor a MenuInfo. No submitHandler, no levelObject, "default" for text.
Definition: MenuTree.cs:46
Assembly dllAssembly
Assembly that references the DLL in which the file is embedded.
Definition: ExtractEmbededFiles.cs:30
All Preference options, via PrefOptionBase, implement this interface. It is used by the PrefOptionBas...
Definition: PrefOptionBase.cs:34
static bool HasVector2Key(this IStorePreferences interfaceReference, string key)
Check for the existence of key +"X" in prefBase
Definition: MultiKeyPrefHelper.cs:98
override Color color
returns the currentColor that is assigned to the material property block. when set,...
Definition: SpriteRendererToGraphicsInterfaceAdapter.cs:41
static bool IsObjectAnAsset(Object testObject)
Accessible inside of Editor only code, this function will return false when not running in the Editor...
Definition: GameObjectExtensionEditorComponent.cs:44
static Color currentBackgroundColor
This member is pubic for setup purposes only, it should not be set directly by the user,...
Definition: EditorUtil.cs:118
static void DrawPrefControl(this IAccessPreferences< float > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:31
static void Process()
This is the only callback function ACTUALLY registers with the EditorApplication.update delegate....
Definition: EditModeIntervalCallbacks.cs:157
Definition: ProgressThreadParam.cs:5
override void OnInteractivePreviewGUI(Rect rect, GUIStyle background)
Calls the OnPreviewGUI function since the same logic is used to draw both.
Definition: EditorWithPreview.cs:203
virtual bool showColorInterface
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:22
static void ShowPathsDialog()
Opens up an editor window to show the "Unique path" of selected objects. these "Unique path's" can be...
Definition: AssetDatabaseHelper.cs:71
static bool InternalExposeProperty(bool useLayout, Rect drawRect, ExposedMember field, GUIStyle guiStyle, object undoObject=null, GUIContent overrideLabel=null, bool useGroups=true, GUILayoutOption[] guiOptions=null)
Uses the appropriate EditorGUI fFunction to draw the specified property, and if a change is detected,...
Definition: MemberExposerFunctions.cs:1289
static string FixPath(string str)
given a path string, will convert all forward slashes or backward slashes to whichever is valid for t...
Definition: ExtractEmbededFiles.cs:247
Example usage of DefaultExposedPropertyExpandablePropertyDrawer for drawing Weapon references with de...
Definition: WeaponPropertyDrawer.cs:10
static int EditorToolsCategoryID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:25
static void SetColor(this IGraphicsMaterialPropertyBlockInterface blockInterfaceToSet, Color color)
Gets the blockInterfaceToSet's MaterialPropertyBlock. Then assigns to it the specified color....
Definition: IGraphicsMaterialPropertyBlockInterface.cs:132
void DecIndex(ref int index)
Decrements, by one, then wraps the provided index. The value passed in is adjusted directly via the r...
Definition: CircularArray.cs:126
override void OnInspectorGUI()
Optionally, draws each section of the CustomRenderer: Materials, Lighting, Probes,...
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:40
Definition: IStoreTransformHierarchy.cs:6
A NodeEnumberator that iterates though all the descendants of a node. First it will loop through all ...
Definition: SerializableTreeBase.cs:451
virtual bool showProbesSection
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: CustomRendererEditor.cs:41
virtual bool showLightingSection
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: CustomRendererEditor.cs:37
This class provides a way to access a SpriteRenderer component, on the same GameObject,...
Definition: SpriteRendererToGraphicsInterfaceAdapter.cs:14
UpdateOption materialPropertiesUpdateOption
Specifies when the MaterialPropertyBlovk should be updated for each/all cameras.
Definition: PerCameraMeshAndMaterials.cs:60
static void RegisterObjectWithCallbackCamera(CameraCallbackSignture function, Camera cam)
The function passed in will be called every time the ObjectCallbackCamera determines a notification i...
Definition: CallbackCamera.cs:67
override bool AllowSceneObjects()
Descendants must override this abstract function to change it's current behavior, which is to ALLOw s...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:70
bool isANonNullReference
Specifies if the object referenced by the SerializedProperty actually exists.
Definition: PropertyStats.cs:43
void DeleteAll()
Removes all keys and values from PlayerPrefs. Use with caution.
Definition: PlayerPrefInterface.cs:19
static StoredTransform GenNew()
static function to generate a new StoredTransform instance set to unity/identity, representing no tra...
Definition: StoredTransform.cs:180
static Shader previewShader
this is the special preview shader used to draw preview objects.
Definition: EditorWithPreview.cs:46
bool readOnly
read-only flag is automatically set to true if the exposed property is an accessor that does not have...
Definition: ExposedMember.cs:198
Derived from the ExposedMember class, this version is intended to be used to represent elements of ex...
Definition: ExposedMember.cs:588
static GameObject PreviewObject
this is the object that has attached to it, all the components required to draw the object preview
Definition: PreviewDioramaShoebox.cs:149
Material[] MaterialArray
Public read-only access to the finalMeshReference variable. Not used internally.
Definition: AcessorPropertyTester.cs:168
void DeleteKey(string key)
Removes key and its corresponding value from the preferences.
Contains multiple extension functions for use with the Rect class.
Definition: RectExtensions.cs:12
static T AddComponentAppropriately< T >(this GameObject objectToAddComponent)
The function check is the application is not playing, and is in the editor. If so,...
Definition: GameObjectExtensions.cs:37
virtual void OnEnable()
Initializes SerializedPRopertyMembers based on the current serializedObject
Definition: CustomRendererEditor.cs:51
string offerCreationFunctionWhenNull
This option is appropriate only for reference types, not structs or value-types. When specified,...
Definition: ExposeMemberAttribute.cs:129
bool enabled
The recored value of GUI.enabled;
Definition: EditorUtil.cs:382
static void StringListAsMaskProperty(Rect r, SerializedProperty prop, GUIContent label, string[] fullList)
A static version the PropertyDrawer, meant to be use the same way EditorGUI.PropertyDrawer() is....
Definition: OptionNamesDrawer.cs:46
static string GetToolTipForField(this System.Type declaringType, string fieldName)
The specified fieldName is used to find a field in the provided Type. It uses this fieldInfo to invok...
Definition: EmbededXMLTooltip.cs:26
void AppendToNextLog(int category, params object[] messageObjects)
This function will store the provided text, and append it to the text of the next call to a Log funct...
Definition: CatDebug.cs:408
static T LoadAssetFromUniqueAssetPath< T >(string aAssetPath)
Can load built-in objects, from paths generated by GetUniqueAssetPath
Definition: AssetDatabaseHelper.cs:24
static void SetMainTexture(this IGraphicsMultiMaterialPropertyBlockInterface blockInterfaceToSet, int matIndex, Texture tex)
Extension function for IGraphicsMultiMaterialPropertyBlockInterface's. Gets the MaterialPropertyBlock...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:250
static Material axisMaterial
Reference to the material that will be used to draw the coordinate axes, in the preview window.
Definition: EditorWithPreview.cs:54
void SetInt(string key, int value)
Sets the value of the preference identified by key to the provided value in PlayerPrefs.
Definition: PlayerPrefInterface.cs:82
void ClearAppendText()
Clears the prepend text used when no category is provided.
Definition: CatDebug.cs:371
static bool CompareGradients(Gradient a, Gradient b)
Compares the values of two gradients. Check the arrays of GradientAlphaKeys, and GradientColorKeys to...
Definition: GradientStorage.cs:115
static bool FileOrUnzippedFileExists(string filePathAndName)
checks if both the file exists in the destination. Removes any trailing ".gzip" from provided filenam...
Definition: ExtractEmbededFiles.cs:229
Definition: SerializableDictionary.cs:5
Provides the ability to check if a transform has changed, as far a particular object is concerned....
Definition: CheckTransformChangedSinceLastCheckByObject.cs:10
override bool LoadAndGetPropertyExpanded(SerializedProperty listProperty)
Refreshes any stored expanded state from storage, then assigns the expanded state to the property and...
Definition: LimitedListProperty.cs:930
MultikeyPrefHelper provides convenience functions for checking, reading, storing and deleting Vector3...
Definition: MultiKeyPrefHelper.cs:24
string tooltip
tool-tip assigned for display for the ExposedProperty
Definition: ExposeMemberAttribute.cs:83
static EditorPrefOption< int > propertyCounterMaxForSanity
Sets a maximum iteration count, when going through property fields, to prevent a potential hang/lock-...
Definition: EditorToolsOptions.cs:41
static bool IsObjectAPreFab(Object testObject)
Checks if the referenced object is a reference to a saved PreFabObject.
Definition: GameObjectExtensionEditorComponent.cs:35
static EditorPrefOption< int > LimitedListPropertyDrawerSliderMaxHeight
DrawHeight sliders for LimitedListPropertyDrawers will use this as the maximum value they may be set ...
Definition: EditorToolsOptions.cs:111
string FullFileNamePath
Combination of this instance's path and filename as a single string
Definition: XmlPreferenceInterface.cs:61
static void DrawLimitedListPropertyLayout(SerializedProperty property, GUIContent label=null, PropertyDrawer useThisDrawer=null, params GUILayoutOption[] options)
Draws a LimiedList using the specified property, at the specified location. Providing a Label and use...
Definition: LimitedListProperty.cs:1022
void Save()
Writes all modified preferences to disk.
static void LayoutFoldoutObjectProperty(SerializedProperty prop, GUIContent label=null, System.Type type=null, bool allowSceneObjects=true, bool allowCreation=true, params GUILayoutOption[] options)
Auto-Layout version of FoldoutObjectProperty property-drawing function. Shows a standard Unity Object...
Definition: EditorUtil.cs:311
static void DrawLimitedListProperty(Rect position, ExposedMember property, GUIContent label=null)
Draws a LimiedList using the specified property, at the specified location. Providing a Label paramet...
Definition: LimitedListMember.cs:196
ExtractionInfo(Assembly _dllAssembly, string _filename, string _assetPath, string _dllNamespace)
Constructor for a single File's ExtractionInfo Use this version when you want to extract from a DLL t...
Definition: ExtractEmbededFiles.cs:88
override System.Type[] GetTypesOfRendererComponents()
Abstract base class (EditorWithPreview) functions specified.
Definition: MeshEditorWithPreview.cs:17
GameObject previewObject
This is a reference to the object created in the scene diorama. It is destroyed when the Editor windo...
Definition: EditorWithPreview.cs:36
Automatically handles drawing for all display OptionNames variables, such that they look like a stand...
Definition: OptionNamesDrawer.cs:12
float GetFloat(string key)
Returns the value corresponding to key in the preference file if it exists.
Definition: XmlPreferenceInterface.cs:201
void ForceAllCameraMaterialsToDefaultNow()
Resets all the camera specific materials into the default materials.
Definition: PerCameraMeshAndMaterials.cs:409
static string ToStringEyE(this Transform transform, string indent, bool includeDecendants=false)
Output transform as multi-line, indented by descendant, string, useful for debugging.
Definition: TransformExtensions.cs:338
static void BeginDarkenedBox(Rect unindentedDrawRect)
Draws a box, with a border, at the specified location and size, and darkens the background in it usin...
Definition: EditorUtil.cs:178
void Deserialize()
this function is used to read the two serialized lists; serializedNodes and dataList,...
Definition: SerializableTreeBase.cs:945
bool ContainsKey(TKeyType key)
Checks to see if the specified key already exists in the dictionary
Definition: SerializableDictionary.cs:190
void DeleteAll()
Removes ALL keys and values from the preferences. Use with caution.
override StoredTransform DefaultNodeData()
this function overridden to provide a default transformation storage value
Definition: TreeOfLocalTransforms.cs:31
static bool AreTrianglesFlush(Vector3 t1p0, Vector3 t1p1, Vector3 t1p2, Vector3 t2p0, Vector3 t2p1, Vector3 t2p2)
compares the vertices of two triangles, if they have more than one matching vertex position,...
Definition: Mathg.cs:151
abstract int ArraySize(T listProperty)
Extracts and returns the size of the array provided
override bool Equals(Transform compareTransform, bool localNotWorld)
Use to compare with an existing transform. Compare values in the transform and all children to see if...
Definition: TransformStorageTree.cs:104
static PlayerPrefOption< ValueType > GenNewPlayerPrefOptionUsingXMLForTooltip(ValueType defaultValue, string fieldName, System.Type containingClass, bool alwaysLoadSaveOnAccess=true)
This static function is used to create an instance of a PlayerPrefOption. By passing in the field-nam...
Definition: PrefsFromXmlDocs.cs:48
void SetInt(string key, int value)
Sets the value of the preference identified by key to the provided value.
A NodeEnumberator that iterates though the node itself, and all it's descendants, before moving on to...
Definition: SerializableTreeBase.cs:424
virtual bool Equals(Transform transformToCheck, bool localNotWorld)
Use to compare with an existing transform. This class does not actually store global coordinates,...
Definition: TreeOfLocalTransforms.cs:99
void CameraCallback(Camera cam, Matrix4x4 view, Matrix4x4 projection)
This function is called by registered cameras when, by default, their transform changes....
Definition: PerCameraMeshAndMaterials.cs:225
LocalTransformDictionayStorage(int count)
Constructor used to Initialize the data structure with specific number of elements
Definition: LocalTransformDictionayStorage.cs:23
This class provides a way to access a MeshRenderer component, on the same GameObject,...
Definition: MeshRendererToGraphicsInterfaceAdapter.cs:13
MeshAndMaterialConfigSet(Material[] startingMaterials)
Creates an Instance of a MeshAndMaterialBlock and initializes it with the provided Material array....
Definition: MeshAndMaterialConfigSet.cs:26
static bool addCategoryNameToLog
the option controls whether or not categories names will be prepended to log displays.
Definition: CatDebug.cs:457
virtual bool HasTexture()
Specifies if the material this instance uses has a _MainTexture
Definition: CustomRenderer.cs:325
static void SaveSingleton()
Static function used to save changes to the default XmlPreferenceInterface reference.
Definition: XmlPreferenceInterface.cs:25
static void OnGUI()
In this callback-function the EditorPrefOptios automatically load the preference values,...
Definition: EditorPrefOptionSample.cs:105
string groupEnabledControl
This attribute may only be applied to boolean exposedMembers. These exposed members will be drawn on ...
Definition: ExposedMember.cs:207
bool displayWarningWhenNull
This option is appropriate only for reference types, not structs or value-types. Setting this option ...
Definition: ExposedMember.cs:230
static Bounds TransformBoundsRelativeToAncestor(this Transform transform, Transform ancenstorTransform, Bounds bounds)
utility function that applies only the transforms relative to a parent (or earlier ancestor),...
Definition: TransformExtensions.cs:228
Vector3 unclippedEulers
allows storage of transformation rotation greater than 360 deg
Definition: StoredTransform.cs:49
List< TValueType > pairVList
Serialized version of the Value data, synchronized with the dictionary during serialization....
Definition: SerializableDictionary.cs:137
Contains information about an exposed property, such as the name, type, tool-tip, and reflection info...
Definition: ExposedMember.cs:21
static bool HasKey(string keyParam)
Confirm the key is already stored in preferences
Definition: PrefOptionBase.cs:370
MaterialConfig[] materialsBlock
The material block array used for rendering the mesh member.
Definition: MeshAndMaterialConfigSet.cs:21
override System.Object GetValue()
Gets the value of the collection element reference by this ExposedCollectionMemberElement.
Definition: ExposedMember.cs:672
This Utility class extends the .net MemberInfo class, in order to provide a single method to access b...
Definition: MemberInfoExtension.cs:21
virtual void AssignToTransform(Transform transformToAssignTo, bool ignored=true)
Use this function to assign the values stored in the TransformStorageTree to an actual UnityEngine....
Definition: TreeOfLocalTransforms.cs:73
static ExposedMember FindExposedMemberByName(IEnumerable allProperties, string name)
Searches the provided array of ExposedMember's for any with the specified name. Returns the first E...
Definition: MemberExposerFunctions.cs:1587
Texture2D thumbImage
This image is generated once, is small, and static. It is used to for the Target's icon in both inspe...
Definition: EditorWithPreview.cs:32
virtual Bounds GetLocalBounds()
Specifically used to get the bounds of the referenced collider only. Descendants are never included.
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:68
ExtractionInfo(string filename, string assetPath, string dllNamespace, bool importTextureAsIcon, bool importTextureAsSprite)
Constructor for a single File's ExtractionInfo Use this version when you need import a texture as a s...
Definition: ExtractEmbededFiles.cs:163
override bool Equals(Transform compareTransform)
Specific version of equality function used to compare with a Transform object. This version does not ...
Definition: TransformStorageTree.cs:94
Bounds bounds
local bounds of object.
Definition: IGraphicsBounds.cs:17
string prependIDString
Stores a string that will be prepended to the normal results of ToString(), before that function retu...
Definition: ExposedMember.cs:146
override bool AllowCreation()
By default objects may be created via the ExpandableObjectPropertyDrawer buttons. Override this funct...
Definition: DefaultExpandablePropertyDrawer.cs:44
Mesh mesh
Mesh that is associated with the material block array in this class.
Definition: MeshAndMaterialConfigSet.cs:17
bool openForInspection
Used by UI to determine if the node should be opened (showing children), or not.
Definition: SerializableTreeBase.cs:134
static bool GetFoldoutState(ExposedMember property)
Gets the current foldout state of the provided ExposedMember, which may have been changed by the user...
Definition: PerObjectNameBooleans.cs:39
static EditorPrefOption< bool > focusOnBoundCenterNotOrigin
This option defines weather the preview camera should be pointing at the axis origin,...
Definition: PreviewPrefs.cs:64
Sample class showing how and where to call each function of the DeltaMonitor class....
Definition: MonoDeltaDetectorUnityBase.cs:15
void ResetValuesInSet(int set)
Will reset the values of all stored attributes that have the provided SetID. This is done by overwrit...
Definition: DeltaMonitor.cs:357
static float SmallestCoordinateValue(this Vector3 vec)
Returns the largest Coordinate in the vector. The sign of the values are not considered when determin...
Definition: Vector3Extensions.cs:168
void Save()
Writes all modified PlayerPrefs to disk. Note: PlayerPrefs are automatically saved by Unity onApplica...
Definition: PlayerPrefInterface.cs:64
IEnumerator< StoredTransform > GetEnumerator()
Default GetEnumerator
Definition: TransformAndDecendantStorage.cs:322
bool changeDetected
True when a change has been detected during this UpdateCycle. Flag is reset during LateUpdate.
Definition: MonoDeltaDetectorBit.cs:31
static SerializedProperty FindPropertyRelativeFix(this SerializedProperty sp, string name, ref SerializedObject objectToApplyChanges)
Extension function for SerializedProperties. If the SerializedProperty is a type of Scriptable Object...
Definition: SerializedPropertyExtensions.cs:333
virtual bool isViewable
Return true if the rendererRef is enabled. Not affected by weather or not the object is actually visi...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:273
UpdateOption meshUpdateOption
Specifies when the mesh should be reassigned to each/all cameras. This will invoke the abstract (defi...
Definition: PerCameraMeshAndMaterials.cs:56
virtual bool HasTexture()
Returns weather or not the material(first material on renderer) actually has a texture variable that ...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:197
bool IsReadOnly
Returns true is the dictionary is ReadOnly
Definition: SerializableDictionary.cs:111
static bool GetViewableIncludingDecendants(GameObject decendantsOf)
Searches object and descendants for IGraphicsViewable components, and checks the isViewalble member; ...
Definition: IGraphicsViewable.cs:49
void CopyTo(KeyValuePair< TKeyType, TValueType >[] array, int arrayIndex)
Used to copy the collection Keys and Values into an array of KeyValuePair{TKeyType,...
Definition: SerializableDictionary.cs:250
static void PushSerializedPropertyExtendedPathInfo(string extendedPath)
When descending a level, into the sub properties of a SerializedProperty, this function is called to ...
Definition: PerObjectNameBooleans.cs:75
bool GroupIsFoldout
Determines weather the group that this ExposedProperty is a member of, has a foldout/fold-up option.
Definition: ExposedMember.cs:362
virtual void Load()
This function will attempt to retrieve from storage, and cache, the preference value from the PrefInt...
Definition: PrefOptionBase.cs:198
Similar in form to the PrefOptionBase class, this class is used to specify a preference that is to be...
Definition: PrefOptionArrayBase.cs:12
Object GetAssetAtPath(string key)
Gets the asset reference associated with this key, from prefBase. Behind the scenes,...
Definition: EditorPrefInterface.cs:114
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Overrides the base class to always, show only the details of the property; no foldout or save options...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:100
PrefOptionArrayBase(TValueType[] _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: PrefOptionArrayBase.cs:53
static EditorPrefOption< Color > iconBackgroundColor
Color of the field behind the preview object when drawing icons.
Definition: PreviewPrefs.cs:77
IEnumerable< Node > NodeAndAllDecendantsByLevel()
Provides and IEnumerable<Node> that will iterate though all the descendants of a node....
Definition: SerializableTreeBase.cs:630
static PlayerPrefOption< bool > addCategoryNameToLogSingleLineOption
Specified if the Category name, when prepended to the log entry, should not include a newline charact...
Definition: CatDebugOptions.cs:20
virtual bool showBoundsInterface
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:26
bool openForInspection
Used by the UI to determine if node is expanded or collapsed.
Definition: SerializableTreeBase.cs:36
virtual bool showViewableInterface
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:30
UnityEvent deltaDetectedCallBack
Callback invoked when a change is detected.
Definition: MonoDeltaDetectorCallback.cs:22
Definition: AssetPreviewCatDebugSetup.cs:7
override bool Equals(object obj)
Used to check equality of the transforms contained in the List, with those in the provided object
Definition: TransformAndDecendantStorage.cs:38
virtual void RebuildPropertyBlock()
This function will be invoked wen the property block needs to be rebuilt. For example,...
Definition: CustomRenderer.cs:308
void Abort()
Aborts all threads in the set.
Definition: ProgressThreadParam.cs:106
int indexOfFirstChild
Index into SerializableTree's serializedNodes list of first child node (other children are consecutiv...
Definition: SerializableTreeBase.cs:32
void IncIndex(ref int index)
Increments, by one, then wraps the provided index. The value passed in is adjusted directly via the r...
Definition: CircularArray.cs:118
static void RemoveRangeCircular< T >(this List< T > list, int startIndex, int count)
Function works much like the normal List Remove Range function except that if the count of elements t...
Definition: CollectionExtensions.cs:230
bool HasTexture()
Specifies if the material this instance uses has a _MainTexture
static void Log(string message)
This function will take an array of strings, and if a DEBUG build is running, it will concatenate tog...
Definition: CatDebug.cs:497
void GenerateSnapshot(Quaternion rotation, Vector2 size, ref Texture2D snapShot)
This Public function allows the user to generate the Snapshot, and get the result in the form of a Te...
Definition: EditorWithPreview.cs:505
void ResetValues()
One of the primary functions for this class, it will reset the values of all stored attributes....
Definition: DeltaMonitor.cs:330
Node(Node parent, T data)
creates a new node, that holds the provided data. Adds this new node as a child of the specified pare...
Definition: SerializableTreeBase.cs:141
string filePath
Path of file used to store XmlPreferenceInterface via this instance of XmlPreferenceInterface
Definition: XmlPreferenceInterface.cs:38
bool isPotentialWarning
This option is only used when exposing booleans types. When this flag is used, rather than displaying...
Definition: ExposedMember.cs:225
virtual void SetToDefault()
Sets the current value of this preference to defaultValue.
Definition: PrefOptionBase.cs:427
void ReSerialize()
This function will take the runtime tree nodes, and their data, and store them into the two serialize...
Definition: SerializableTreeBase.cs:887
static void DrawPrefControl(this IAccessPreferences< Vector3 > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:75
static int LargestCoordinate(this Vector3 vec)
Returns an index to the largest Coordinate in the vector 0 for x, 1 for y, and 2 for z The sign of th...
Definition: Vector3Extensions.cs:127
static string mainTextureString
The default main texture string- hard coded initialization.
Definition: IGraphicsMaterialPropertyBlockInterface.cs:111
static bool ConvertTextureAssetToSprite(string textureAssetPath)
Takes the path of an image file asset and generates a TextureImporter for it, which configures the im...
Definition: ExtractEmbededFilesInEditor.cs:281
static IStreamableImplmentingClass CreateFromStream< IStreamableImplmentingClass >(System.IO.BinaryReader readStream)
Instantiates a new instance of the IStreamable type T, and fills it with data from the stream by invo...
Definition: StreamableInterface.cs:46
virtual bool DrawDefaultPropertyOverride
Property that defines whether the property should be drawn as an expandable Object,...
Definition: ExpandableObjectPropertyDrawer.cs:58
virtual void RebuildPropertyBlock()
This function is called when an enabled state is changed. It clears the current property block,...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:370
static void DeleteBoolKey(this IStorePreferences interfaceReference, string key)
Deletes the bool value associated with this key, in prefBase, to the provided bool value....
Definition: MultiKeyPrefHelper.cs:271
abstract void SetupPreviewObjectRendererWithMaterial(Material previewMaterial)
Performs the setup necessary for the PreviewObject to be drawn to the preview camera....
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:7
static float LargestCoordinateValue(this Vector3 vec)
Returns the largest Coordinate in the vector. The sign of the values are not considered when determin...
Definition: Vector3Extensions.cs:143
override void SetAndStorePropertyExpanded(ExposedMember listProperty, bool expanded)
Used to set the expanded state of the specified property, and record it in storage.
Definition: LimitedListMember.cs:142
static void PromptUserToConfirmDeleteOfExtractedFiles()
Prompts the user to confirm deletion of any of these files (or their unzipped version) from the file-...
Definition: ExtractEmbededFilesInEditor.cs:205
bool SetParent(Node newParent)
This function will set this node as a child of the newParent node. If this node is already a child of...
Definition: SerializableTreeBase.cs:114
override void OnInspectorGUI()
Draws the color and Viewable interfaces
Definition: TextMeshToColorInterfaceAdapterEditor.cs:20
static string ToStringEyE(this Transform transform, bool includeDecendants=false)
Output transform as single line string, useful for debugging.
Definition: TransformExtensions.cs:313
void RegisterCamera(Camera cam)
This function is called internally when a new camera is detected. It creates a mesh via GenerateMeshF...
Definition: PerCameraMeshAndMaterials.cs:262
void Copy(Transform transform_to_copy, bool localNotWorld=true)
Copies the source Transform's local or world values, into the calling StoredTransform's variables....
Definition: StoredTransform.cs:214
static void AppendToNextLog(string message)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:588
bool isASaveableObjectReference
Specifies if the object referenced is actually a type of Asset that can saved, or not.
Definition: PropertyStats.cs:31
virtual void Delete()
While the Delete function does not effect any member values, it will attempt to remove the current ke...
Definition: PrefOptionArrayBase.cs:196
static MemberInfo FindMemberByName(object instance, string name)
Convenience function to find any members in the object's type, with the given name....
Definition: MemberInfoExtension.cs:159
virtual string Name
Provides a nicified label-quality name for the ExposedProperty, that is based on the identifier used,...
Definition: ExposedMember.cs:136
static EditorPrefOption< float > previewAmbientLight
This float specifies how bright the unlit portions of the object should be.
Definition: PreviewPrefs.cs:51
virtual bool showOtherSection
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: CustomRendererEditor.cs:45
static EditorPrefOption< ShowAxisOptions > axisOption
Option that defines if the axis should be drawn in previews, or just the origin should be drawn,...
Definition: PreviewPrefs.cs:86
override bool Equals(object obj)
This function does NOT operate as a standard equals function does. Rather it checks the provided obje...
Definition: CheckTransformChangedSinceLastCheckByObject.cs:162
static StoredFullTransform GenNew()
static function to generate a new StoredTransform instance set to unity/identity. (This function exis...
Definition: StoredFullTransform.cs:167
static Color GetColor(this IGraphicsMaterialPropertyBlockInterface blockInterfaceGetColorFrom)
Gets the MaterialProperty block of the blockInterfaceToGetTextureFrom, then extracts and returns the ...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:152
int BufferStartIndex
index to the first valid item pushed into the buffer.
Definition: CircularArray.cs:314
List< string > SelectedOptionsThatAreNotInFullList()
Checks the selectedOptionNames array against the fullList array to confirm that all strings in the se...
Definition: OptionNames.cs:28
static IList SetIListSize(IList listInterface, int newSize)
Adjusts the size of the IList provided, to the specified size. If the list is of fixed size it will a...
Definition: CollectionExtensions.cs:257
static float[] ToFloatArray(this Vector3 vec)
Convenience function used to convert the x,y and z values of a Vector3, into an array of 3 floats....
Definition: Vector3Extensions.cs:232
static void DeleteVector3Key(this IStorePreferences interfaceReference, string key)
Deletes the Vector3 value associated with this key, and the key itself, from prefBase....
Definition: MultiKeyPrefHelper.cs:82
override string ArrayName(ExposedMember listProperty)
Used to compute the label that will be Displayed for the list
Definition: LimitedListMember.cs:103
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Draw the property inside the given rect. Draws special controls for CircularBuffers,...
Definition: CircularBufferPropertyDrawer.cs:37
int sourceLineNumber
stores the source line number the attribute was applied on.
Definition: ExposeMemberAttribute.cs:144
bool CopyNode(Node sourceNode, Node destinationParent)
recursive function used to copy the data contained in the provided sourceNode, and its descendants,...
Definition: SerializableTreeBase.cs:859
T Pop()
Pop gets the oldest value that was pushed onto the buffer, that has not yet been popped off the buffe...
Definition: CircularArray.cs:367
static void CreateNewAsset< T >(string name, ref string createdPathAndName)
Generates a new ScriptableObject Asset, and saves it to the Asset Folder. This function is only appli...
Definition: ResourceSystem.cs:41
override string ToString()
Used to display the stats collected about the property, for debugging purposes.
Definition: PropertyStats.cs:155
virtual void OnDisable()
Destroys the dynamic elements of the diorama, and resets the rotation of the preview.
Definition: EditorWithPreview.cs:86
virtual bool HasKey()
This protected function is used to check if the key exits in PrefInterface. Used before attempting to...
Definition: PrefOptionArrayBase.cs:188
virtual void Update()
Executes the DetectChanges function on the change monitor. if it has changed, the changeDetected flag...
Definition: MonoDeltaDetectorBit.cs:53
static object InstantiateSystemObjectOfType(this object potentialSourceData)
Not all types will be able to copy the potential source data, only use.Object derived types,...
Definition: GameObjectExtensions.cs:159
static bool drawKeyValueHorizontaly
Static bool that stores the configured option for drawing keyValue pairs horizontally or vertically....
Definition: SerializableDictionaryPropertyDrawerBase.cs:23
virtual TValueType[] SetToDefault()
Sets the current value of this preference to defaultValue.
Definition: PrefOptionArrayBase.cs:212
void Remove(ProgressThreadParam p)
Aborts then removes the provided ProgressThreadParam reference from the set.
Definition: ProgressThreadParam.cs:130
override int GetHashCode()
A specific section of the stats data is returned as the HashCode. Two objects that are equal return...
Definition: UniqueIDString.cs:113
static void Log(int category, string message)
This function will take a single string, and if the category is enabled, and if a DEBUG build is runn...
Definition: CatDebug.cs:532
Sample class that extracts an icon and a sprite prefab embedded in the dll.
Definition: ExtractEyeEnginesLogo.cs:13
MemberInfo fieldRef
Contains a PropertyInfo or FieldInfo reference to the field, so we don't need to lookup the field,...
Definition: DeltaAttribute.cs:42
static void Register(float timeInterval, IntervalCallback callback)
Static function used to register callback functions. IT allows the user to specify the time internal,...
Definition: EditModeIntervalCallbacks.cs:33
static void Init()
This function will assign the load and save functions to the appropriate unity callbacks
Definition: PerObjectNameBooleans.cs:357
void Save()
Writes all modified preferences to disk.
Definition: EditorPrefInterface.cs:80
void ClearPrependText()
Clears the prepend text used when no category is provided.
Definition: CatDebug.cs:305
static bool operator!=(UniqueStringID x, UniqueStringID y)
Invokes the operator== , the result is negated and returned.
Definition: UniqueIDString.cs:167
DeltaMonitorUnityObject(UnityEngine.Object _objectToMonitor)
Creates a new DeltaMonitorUnity Object, that will monitor the provided object for changes in members ...
Definition: DeltaMonitorUnityObject.cs:49
Contains functions that provide "constructors" for objects that implement the IStreamable interface,...
Definition: StreamableInterface.cs:38
bool boundsIncludesDecendants
Specified weather the bounds accessor should encapsulate the bounds of IGraphicsBounds of this GameOb...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:233
GUIContent alternateLabel
The alternate label that may ,conditionally, be displayed.
Definition: ExposedMember.cs:255
SerializableTreeNode class is used for serialization of SerializableTreeBase. It stores the details a...
Definition: SerializableTreeBase.cs:19
virtual void Update()
checks if any DeltaAttributed variables have changed, and if so calls the abstract DelktaDetected fun...
Definition: MonoDeltaDetectorUnityBase.cs:47
Interface that provides a standard way to access the material property block on various renderer with...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:48
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Computes and returns the height required to draw the CircularBuffer
Definition: CircularBufferPropertyDrawer.cs:52
void DeleteAll()
Removes all keys and values from EditorPrefs. Use with caution.
Definition: EditorPrefInterface.cs:35
abstract IEnumerator< Node > GetEnumerator()
This class wraps the UnityEngine.PlayerPrefs class in the IStorePreferences interface so that it be a...
Definition: PlayerPrefInterface.cs:14
int TotalLeafCount()
Counts the total number of leaves (childless-nodes) it the entire tree.
Definition: SerializableTreeBase.cs:764
static Bounds GetBoundsIncludingDecendants(Transform localToThisTransform)
Gets all IGraphicsBounds components in provided transform's object, and it's children....
Definition: IGraphicsBounds.cs:102
Definition: MeshEditorWithPreview.cs:6
UniqueStringID()
This constructor does noting, all internal values will be initialized with zeros. Only use this if in...
Definition: UniqueIDString.cs:24
static void SetCategoryState(int catID, bool state)
Sets and saves the enabled/disabled state of the specified category.
Definition: ConditionalDebugCategoryRegistrar.cs:333
void StoreTransformAndChildren(Transform transformToStore)
this function is called to Store a transform Object in the StoredTransform Object....
XmlPrefOption(TValueType _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: XmlPrefOption.cs:24
List< Node > children
a dynamic list of all the nodes that are children of this one. It is through these lists,...
Definition: SerializableTreeBase.cs:130
Vector3 lossyScale
Accessor to read and write the scale value stored in the world StoredTransform member.
Definition: StoredFullTransform.cs:79
const string previewCameraName
name that will be assigned to the preview camera
Definition: PreviewDioramaShoebox.cs:45
IEnumerable< Node > LeavesOnly()
Provides and IEnumerable<Node> that will iterate though the node and the children of the node.
Definition: SerializableTreeBase.cs:658
static void SetVector2(this IStorePreferences interfaceReference, string key, Vector2 vector)
Sets the Vector2 value associated with this key, in prefBase, to the provided Vector3....
Definition: MultiKeyPrefHelper.cs:129
override SerializedProperty GetArrayElementAtIndex(SerializedProperty listProperty, int index)
Used to get the array elements from the list. Which element is returned is defined by the integer par...
Definition: LimitedListProperty.cs:966
static void Delete(string keyParam)
The static function will delete all preferences of ValueType specified by the key.
Definition: PrefOptionBase.cs:402
static Texture2D GetCashedIconForGUID(string guid)
Checks to see if a Texture has been cached for the specified GUID.
Definition: ProjectViewIcons.cs:96
static void SetToUnity(this Transform transform)
Similar to Reset, but a little clearer, and only effects transformation values. A utility function,...
Definition: TransformExtensions.cs:99
static int ExposeMembersCategoryDetailsID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:35
bool recordUndoOnChanges
Specifies if the exposed object should be recorded, for potential UNDO, every time a change is made t...
Definition: ExposedObjectMembers.cs:50
This class runs on load and checks for the presence of the xml files that contain the documentation f...
Definition: TransformStorageModuleEditorInit.cs:15
void RebuildPropertyBlock()
This function will be invoked wen the property block needs to be rebuilt. For example,...
static Texture GetMainTexture(this IGraphicsMultiMaterialPropertyBlockInterface blockInterfaceGetTextureFrom, int matIndex)
Extension function for IGraphicsMultiMaterialPropertyBlockInterface's. Gets the MaterialPropertyBlock...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:276
override void OnInspectorGUI()
Optionally, draws each section of the CustomRenderer: Materials, Lighting, Probes,...
Definition: CustomRendererEditor.cs:72
static void PromptUserToExtractMissingRegisteredFilesNow(bool logToConsole=true, bool promptOnCreation=true)
Prompts the user to extract any missing files, opening the prompt window immediately.
Definition: ExtractEmbededFilesInEditor.cs:64
override void PreCameraRendering(Camera cam)
This function is called immediately before the preview camera is rendered. Override and declare your ...
Definition: MeshEditorWithPreview.cs:24
static bool FileExistsAndIsNotZeroLength(string filePathAndName)
Checks if the file exists, and if it does, that it does not have a zero length.
Definition: ExtractEmbededFiles.cs:213
SerializableDictionary()
Default Constructor. Initializes the Dictionary with zero elements.
Definition: SerializableDictionary.cs:26
object GetPropertyValue(string propertyName)
Finds the exposed property with the provided name, and returns it's value as a generic object referen...
Definition: ExposedObjectMembers.cs:292
static void CreateNewAssetWithThisObject(Object newObject, string name, ref string createdPathAndName, bool ignoreSelectionForPath=false, bool selectNewItem=true)
Generates a new asset base on the newObject parameter, and saves it as an asset. This function is onl...
Definition: ResourceSystem.cs:54
static Type GetEnumerableElementType(this Type collectionType)
Given the type of an enumeration, returns the type of it's elements.
Definition: TypeExtension.cs:69
static void DrawLimitedListPropertyLayout(ExposedMember property, GUIContent label=null, params GUILayoutOption[] options)
Draws a LimiedList using the specified property, at the specified location. Providing a Label and use...
Definition: LimitedListMember.cs:208
GUIContent Label
Accessor used to access the optional GUIContent when for labeling this preference in the Unity Editor...
Definition: PrefOptionArrayBase.cs:105
Only nodes with no children are enumerated
AllDecendantsByLevelEnumerator(Node node)
Definition: SerializableTreeBase.cs:457
static byte[] ZipBytes(byte[] bytes)
takes the contents of the provided string, and zips it into a byte array, which is returned.
Definition: Zipper.cs:66
ExposedMember(System.Object instance, MemberInfo info, ExposeMemberAttribute attributeInfo=null, string prependIDString=null)
Constructor for this class. Takes an object instance, and a MemberInfo that reference a single member...
Definition: ExposedMember.cs:455
This Interface is intended to allow consistent access to either Player Preferences(available in final...
Definition: IStorePreferences.cs:10
ExposeMemberLayoutDelegate exposeMemberLayoutDelegate
function delegate that specifies how to draw the property with layout
Definition: MemberExposerFunctions.cs:97
override bool Equals(object obj)
Generalized version of equality function. Determines if the object to compare is a Transform or Store...
Definition: StoredFullTransform.cs:194
void SetFloat(string key, float value)
Sets the float value of the preference identified by key to the provided value in EditorPrefs.
Definition: EditorPrefInterface.cs:88
Definition: MeshEditorWithPreview.cs:6
DeltaMonitor(object _objectToMonitor)
Performs the same functions as Init(), once the object is instantiated. But, also,...
Definition: DeltaMonitor.cs:97
List< TKeyType > pairKList
Serialized version of the Key data, synchronized with the dictionary during serialization....
Definition: SerializableDictionary.cs:132
bool AproxEquals(StoredTransform trasformStorage)
Specific version of equality function used to compare with a StoredTransform structs,...
Definition: StoredTransform.cs:391
static EditorPrefOption< bool > LimitedListPropertyDrawerPutFoldoutInBox
Specifies if LimitedListPropertyDrawers will draw a box with a border around the foldout area.
Definition: EditorToolsOptions.cs:86
void StoreTransformAndChildren(Transform transformToStore)
this function is called to Store a transform Object in the StoredTransform Object....
Definition: TransformDictionaryStorage.cs:45
override void OnAfterDeserialize()
Puts the Serializable monitoredObject field into the live base class member, base....
Definition: DeltaMonitorUnityObject.cs:66
virtual void Load()
This function will attempt to retrieve from storage, and cache, the preference value from the PrefInt...
Definition: PrefOptionArrayBase.cs:131
Simple class with static Zip and Unzip functions. Implements System.IO.Compression....
Definition: Zipper.cs:9
delegate Object EditorInstanceIDToObjectFunction(int instanceID)
Delegate Used by editor dll to hook into the EditorUtility.InstanceIDToObject, when present.
static void DeleteFileOrUnzippedFileIfExists(string filePathAndName)
checks to see if the file exists, and deletes it if so.
Definition: ExtractEmbededFilesInEditor.cs:319
int GetInt(string key)
Returns the integer value corresponding to key in the preference file if it exists in EditorPrefs.
Definition: EditorPrefInterface.cs:58
TransformChange(Transform transformToMonitor)
Constructor for this class. Users will, generally, not need to invoke this manually: usually this wil...
Definition: CheckTransformChangedSinceLastCheckByObject.cs:143
bool boundsIncludesDecendants
When true, bounds will encapsulate all IGraphicsBounds descendants, of this object,...
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:25
Definition: ExtractEmbededFilesInEditor.cs:9
Definition: SoldierPropertyDrawer.cs:10
bool HasColor()
Specifies if the material this instance uses has a _Color
static Vector2 Vector2FromAngle(float angle)
Returns the point on the circumference of a 1 unit radius circle, at the angle provided....
Definition: TransformExtensions.cs:153
override float InternalGetLimitedListPropertyHeight(ExposedMember property, GUIContent label)
Drawn height of limited list. The height of the control is based upon the expanded size of the first ...
Definition: LimitedListMember.cs:50
A NodeEnumberator that iterates though all the descendants of a node, before moving on to siblings.
Definition: SerializableTreeBase.cs:400
Provides functions to get/set the isViewable flag of any IGraphicsViewable components in a given obje...
Definition: IGraphicsViewable.cs:28
void Load()
Loads the preference from storage- making it available for reach via the Value accessor.
void Remove(object value)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:274
static string GetCategoryName(int catID)
Finds the name of the specified category. if not registered, returns empty string.
Definition: ConditionalDebugCategoryRegistrar.cs:285
virtual void CreatePreviewObjects()
Creates all the objects needed to render the diorama including the camera, preview objects,...
Definition: EditorWithPreview.cs:116
static void SetHasChangedByObject(this Transform transformToCheck, object whosAsking, bool setTo, bool includeDecendants=false)
Allows the user to manually change the hasChanged flag for a particular transform and checking object...
Definition: CheckTransformChangedSinceLastCheckByObject.cs:93
static bool ConvertTextureAssetToIcon(string textureAssetPath)
Confirms the Asset is a Texture, then adjusts it's import settings such that it may be used as an ico...
Definition: ExtractEmbededFilesInEditor.cs:243
virtual void StoreTransformAndChildren(Transform transformToStore)
this function is called to Store a transform Object in the StoredTransform Object....
Definition: TreeOfLocalTransforms.cs:40
void ForceMaterialBlockUpdateForAllCamerasNow()
Resets all the camera specific materials into the default materials.
Definition: PerCameraMeshAndMaterials.cs:391
delegate Object GetEditorSelectedObjectDelegate()
Defines the signature an EditorAdapeter will use to find the selected object, when running in the uni...
This class implements a default property drawer, for use with ExposedMember Attributes.
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:87
int displayOrderInGroup
displayOrderInGroup is not used by this class, but is used by the ExposedObjectMembers when displayin...
Definition: ExposedMember.cs:250
The class provide a few math functions and constants that Unity's Mathf class does not.
Definition: Mathg.cs:11
static void SwapValues(ref float num1, ref float num2)
Swaps the value in two referenced integers.
Definition: Mathg.cs:109
string ExposedMemberToString()
Non overridable variant of ToString, used during construction for logging.
Definition: ExposedMember.cs:160
static float GetFoldoutObjectPropertyHeight(SerializedProperty prop, GUIContent label)
Get the height of a FoldoutObjectProperty control. Takes into account the foldout state of the contro...
Definition: EditorUtil.cs:353
static bool ExtractAndSaveFileFromDLL(Assembly dllAssembly, string filename, string assetPath, string dllNamespace, bool logToConsole=false)
Checks if the file already exists in the file system, and returns immediately, if so....
Definition: ExtractEmbededFiles.cs:269
override void Update()
checks if any DeltaAttributed variables have changed, and if so calls the abstract DelktaDetected fun...
Definition: AirCraft.cs:108
static bool ObjectBased
If this value is true, keys will be processed using the objects unique ID number, as part of the key....
Definition: PerObjectNameBooleans.cs:28
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Gets the height of the foldout section only.
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:111
ExposeMemberDelegate exposeMemberDelegate
function delegate that specifies how to draw the property given a specified rect
Definition: MemberExposerFunctions.cs:101
void SetString(string key, string value)
Sets the value of the preference identified by key to the provided value.
Definition: XmlPreferenceInterface.cs:282
TreeNodeEnumerationMethod
Defines how the tree should be enumerated, when using for-each loops.
Definition: SerializableTreeBase.cs:42
virtual UniqueStringID IDstring()
Returns a uniquieStringID value based on this exposed member's instance's name and this exposed membe...
Definition: ExposedMember.cs:178
static void Init()
Registers the DeltaDetector debug categories with the CategoricalDebug module.
Definition: DeltaDetectorDebug.cs:28
Sample class showing how and where to call each function of the DeltaMonitor class....
Definition: MonoDeltaDetectorCallback.cs:17
void StoreTransformAndChildren(Transform transformToStore)
Function used to store transform and all the children (and their children,recursively) in a transform...
Definition: TransformAndDecendantStorage.cs:256
TKeyType editorNewKeyValue
This field exists for use by the propertyDrawer. It provides a place to store a new entry's Key infor...
Definition: SerializableDictionary.cs:43
static EditorPrefOption< int > FoldoutAndIconHorizSpacing
Horizontal spacing between the foldout section, and saveIcon button for ExpandableObjectPropertyDrawe...
Definition: EditorToolsOptions.cs:80
static EditorPrefOption< bool > satuarateRGBforXYZaxis
When true, will saturate the R, G, or B channel for each X,Y and Z axis, respectively.
Definition: PreviewPrefs.cs:103
string propertyName
The name of the SerializedProperty
Definition: PropertyStats.cs:23
static Material PreviewMaterial
Material that will be used to draw the preview. if it does not exist yet, it will be created using th...
Definition: PreviewDioramaShoebox.cs:169
static void Log(string categoryName, params string[] message)
This function takes a set of strings as parameters and uses the first one as the category,...
Definition: CatDebug.cs:521
static List< UpdateCallback > registeredUpdateDelegates
All updates that have been registered, are stored in this list.
Definition: CallbackCamera.cs:196
abstract float GetFoldoutPropertyHeight(SerializedProperty property, GUIContent label)
This function is overridden is descendants to define how tall the foldout-section of the property is....
Vector3 localRotationEulers
accessor to extract and store transform orientation information, using Euler angles
Definition: StoredTransform.cs:56
void EditorAdd()
After checking IsEditorAddKeyValid, the two new entry keys editorNewKeyValue and editorNewValueValue,...
Definition: SerializableDictionary.cs:53
override T DefaultNodeData()
Overridden function will use
Definition: SerializableTree.cs:48
bool TryGetValue(TKeyType key, out TValueType value)
Will attempt to get the value associated with the provided key. If found the function will put the va...
Definition: SerializableDictionary.cs:212
void AssignToTransform(Transform transformToAssignTo, bool restoreRootLocalNotWorld=false)
Use to assign the values stored in the TransformStorageTree to an actual UnityEngine....
virtual Color color
Color to be assigned to the TextMesh. If the color adapter is not enabled, changing this value will h...
Definition: TextMeshToViewableColorInterfaceAdapter.cs:73
void DeleteAll()
Removes ALL keys and values from the preferences. Use with caution.
Definition: XmlPreferenceInterface.cs:177
virtual bool showUpdateOptions
specifies weather or not this section show be displayed
Definition: PerCameraMeshAndMaterialsEditor.cs:41
static void LogWarning(int category, string message)
This function will take a single string, and if the category is enabled, and if a DEBUG build is runn...
Definition: CatDebug.cs:639
bool NoGroupingConditionalDisplay()
Determines if the control should be displayed, based upon it's conditional state, if used,...
Definition: ExposedMember.cs:424
static float PIOver2
read-only access for math constant: π / 2.0
Definition: Mathg.cs:48
PlayerPrefOption(ValueType _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: PlayerPrefOption.cs:23
override T DefaultNodeData()
Overridden function will use
Definition: SerializableTree.cs:64
List< T > dataList
This list is serialized and stores the data of each node, an object of type T.
Definition: SerializableTreeBase.cs:730
void Clear()
Circular array is static, and does not support this function.
Definition: CircularArray.cs:195
Vector2Int IntRangeAttributeMinMax()
Returns the intergerRange attribute on this object. Only valid if hasRangeAttribute is true....
Definition: ExposedMember.cs:311
delegate bool ExposeMemberLayoutDelegate(ExposedMember field, GUILayoutOption[] guiOptions, object undoObject=null, GUIContent overrideLabel=null)
Defines the signature of a function used to draw the auto-layout version of a specific type's control...
void Push(T value)
Puts the provided value into the buffer, right behind the last pushed value.
Definition: CircularArray.cs:351
static object DrawObjectDefault< T >(Rect position, GUIContent label, object objectToDraw)
Utility function that draws the appropriate control based upon the type parameter T....
Definition: EditorUtil.cs:584
static void UnRegisterObjectWithCallbackCamera(CameraCallbackSignture function, Camera cam)
Removes the function from the callback set of the provided camera's CallbackCamera component
Definition: CallbackCamera.cs:112
abstract void SetAndStorePropertyExpanded(T property, bool expanded)
Used to set the expanded state of the specified property, and record it in storage.
static EditorPrefOption< ValueType > GenNewEditorPrefOptionUsingXMLForTooltip(ValueType defaultValue, string fieldName, System.Type containingClass, bool alwaysLoadSaveOnAccess=true)
This static function is used to create an instance of an EditorPrefOption. By passing in the field-na...
Definition: XmlDocsTooltipsForPrefs.cs:28
IEnumerable< Node > AllDecendantsByLevel()
Provides and IEnumerable<Node> that will iterate though all the descendants of a node....
Definition: SerializableTreeBase.cs:610
static object DrawObjectDefaultLayout< T >(GUIContent label, object objectToDraw)
Utility function that draws the appropriate control based upon the type parameter T....
Definition: EditorUtil.cs:517
override bool RequiresConstantRepaint()
Overridden Editor function that informs unity when the editor needs to be repainted.
Definition: EditorWithPreview.cs:376
Definition: EditModeIntervalCallbacks.cs:8
static void Init()
Registers the Debug Category "Asset Preview" and records the resultant ID
Definition: AssetPreviewCatDebugSetup.cs:25
IEnumerable< Node > NodeAndChildren()
Provides and IEnumerable<Node> that will iterate though the node and the children of the node.
Definition: SerializableTreeBase.cs:648
DeltaMonitorUnityObject changeMonitor
[SnippetDeltaMonitorUnityConstructor]
Definition: MonoDeltaDetectorUnityBase.cs:22
TransformStorageTree(Transform transformToStore)
Constructor that creates a TransformStorageTree using the provided Unity Transform.
Definition: TransformStorageTree.cs:28
static void DeleteVector2Key(this IStorePreferences interfaceReference, string key)
Deletes the Vector2 value associated with this key, and the key itself, from prefBase....
Definition: MultiKeyPrefHelper.cs:143
Definition: DeltaAttribute.cs:12
static string GetDocNodeForField(System.Reflection.FieldInfo field, string nodeName, bool removeWhitespace=true, bool removeCRLF=true)
Given a fieldInfo, computes the path information for and invokes the appropriate GetClassMemberSummar...
Definition: EmbededXMLTooltip.cs:54
EditorPrefInterface()
Parameterless constructor to create instance- does nothing.
Definition: EditorPrefInterface.cs:30
static Camera PreviewCamera
The Camera used to render all previews. Will be automatically created if it does not yet exist.
Definition: PreviewDioramaShoebox.cs:68
bool hasADefultConstructor
Determines whether the object reference by the SerializedProperty
Definition: PropertyStats.cs:59
abstract string ArrayName(T listProperty)
Used to compute the label that will be Displayed for the list
void RenameConditionalOptionName(string OriginalConidtionName, string newConditionName)
This function is used to change the display names of a given DeltaAttribute. This can be useful if on...
Definition: DeltaMonitor.cs:242
static void SetValue(this SerializedProperty property, object value, bool displayWarnings=false)
This SerializedPropety extension function takes an instance of a Serialized Property and assigns a ne...
Definition: SerializedPropertyExtensions.cs:318
static EditorTestObject EditorIsObjectAnAsset
This delegate is assigned by editor class GameObjectExtensionEditorComponent, when the editor is init...
Definition: GameObjectExtensions.cs:99
void Reset()
instantiates the change monitor, specifying THIS object as the one to monitor.
Definition: MonoDeltaDetectorBit.cs:36
override void OnInspectorGUI()
draws the default material property, and update option sections, if they are not disabled
Definition: StaticMeshPerCameraByListEditor.cs:43
static int ExposeMembersCategoryDebugLevelDetailsID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:45
void SendToStream(System.IO.BinaryWriter writeStream)
Implementation of IStreamable. Should write the data contained in the instance that implements this i...
virtual Texture mainTexture
Get accessor returns the cashed currentMainTexture reference, assigned by the user to this IGraphicsT...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:330
static void AppendToNextLog(int category, string message)
This function will store the provided text, and append it to the text of the next call to a Log funct...
Definition: CatDebug.cs:600
static StoredTransform Lerp(StoredTransform a, StoredTransform b, float fraction)
Used to perform linear interpolation upon each part of the two StoredTransforms, and returns the resu...
Definition: StoredTransform.cs:257
property drawer used to display SerializableDictionry.
Definition: SerializableDictionaryPropertyDrawerBase.cs:16
override bool HasPreviewGUI()
Specifies that this type of editor window should indeed draw a preview pane.
Definition: EditorWithPreview.cs:111
DeltaMonitorUnityObject changeMonitor
Member that references/stores, and detects changes on, members in derived classes that have the Delta...
Definition: MonoDeltaDetectorBit.cs:25
This static functional class provides two simple convenience functions. These functions check to dete...
Definition: CollectionExtensions.cs:13
string group
group fields are not actually used by this class, only initialized by it. They are used by the Expose...
Definition: ExposedMember.cs:202
static int UnityExtensionsCategoryID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:40
Little more than storage and extensions for Unity's Gradient. It provides Equals functionality allow ...
Definition: GradientStorage.cs:13
static System.Type GetFieldType(this SerializedProperty property)
This SerializedPropety extension function takes an instance of a Serialized Property and returns the ...
Definition: SerializedPropertyExtensions.cs:233
static void SetBool(object lookupObject, string keyName, bool value)
This function will set the boolean value paired with the provided key, to the provided value....
Definition: PerObjectNameBooleans.cs:244
This example class will define a set of EditorPrefOptions, and code for drawing them in a Unity edito...
Definition: EditorPrefOptionSample.cs:68
This attribute class has no internal functionality. Rather, it's presence is checked for by the edito...
Definition: ExposeMemberAttribute.cs:78
bool forceNextCallback
When this value is true, the Callback will be invoked at the next opportunity.
Definition: CallbackCamera.cs:169
Definition: CatDebugOptions.cs:3
IEnumerable< Node > AllDecendants()
Provides and IEnumerable<Node> that will iterate though all the descendants of a node.
Definition: SerializableTreeBase.cs:601
static bool ExposeProperty(Rect drawRect, ExposedMember field, GUIStyle guiStyle, object undoObject=null, GUIContent overrideLabel=null, bool useGroups=true)
Uses the appropriate EditorGUI fFunction to draw the specified property, and if a change is detected,...
Definition: MemberExposerFunctions.cs:1249
Example usage of DefaultExposedMemberEditor to draw Rank objects Example file source code....
Definition: RankEditor.cs:15
Vector3 TransformPoint(Vector3 point)
Function used to Transform a provided point by this storedTransform. The provided Vector3 point is sc...
Definition: StoredTransform.cs:308
bool CheckArrayElementsFlag
this accessor is be a NAMED PARAMETER for this attribute. It is used to specify that the field checke...
Definition: DeltaAttribute.cs:183
Class used to visually display how the VolumeTransforms class works.
Definition: VolumeTransformTester.cs:10
GUIContent label
The label that will be drawn with the control.
Definition: ExposedMember.cs:194
Node GetChild(int childIndex)
Returns the child of this Node. Which child to return, is specified by the provided index.
Definition: SerializableTreeBase.cs:170
virtual bool showTextureInterface
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: BaseRendererToGraphicsInterfaceAdapterEditor.cs:34
override void OnRenderObject()
Does nothing. Configurable camera callbacks have been implemented instead.
Definition: PerCameraMeshAndMaterials.cs:117
void Closer()
Closes window and unregisters from EditModeIntervalCallbacks
Definition: AssetDatabaseHelper.cs:131
ProgressThreadParam()
Parameterless constructor initialized local values such as progress, and isProcessing
Definition: ProgressThreadParam.cs:46
LimitedListProperty(PropertyDrawer useThisDrawerForElements)
Constructor for an instance of the drawer, that takes a PropertyDrawer which will be used to draw eac...
Definition: LimitedListProperty.cs:822
static Vector3 TransformDirectionRelativeToAncestor(this Transform transform, Transform ancenstorTransform, Vector3 point)
utility function that applies only the transforms relative to an parent or earlier ancestor to the pr...
Definition: TransformExtensions.cs:199
Property drawer for TransformAndDecendntStorage class objects
Definition: TransformHierarchyStoragePropertyDrawer.cs:11
static float GetLimitedListPropertyHeight(SerializedProperty property, GUIContent label, PropertyDrawer useThisDrawer=null)
Use to compute the total height of a drawn LimitedListProperty, when using the provided property to r...
Definition: LimitedListProperty.cs:1035
CircularBuffer(int size)
Constructor used to create a CircularBuffer of a specific size.
Definition: CircularArray.cs:304
static void SetVector3(this IStorePreferences interfaceReference, string key, Vector3 vector)
Sets the Vector3 value associated with this key, in prefBase, to the provided Vector3....
Definition: MultiKeyPrefHelper.cs:67
Stores a navigable tree of StoredTransforms. Each StoredTransform contains only local coordinates,...
Definition: TreeOfLocalTransforms.cs:16
static System.Type TypePopup(GUIContent label, System.Type currentSelection, System.Type onlyDecendantsOf, out List< System.Type > casheListRef, bool useFullName=false)
Generate a pop-up that displays a list of Types for selection. Note: the list used in this pop-up is ...
Definition: EditorUtil.cs:466
Node parent
Reference to this node's parent node. Only the root node, will have a null value here.
Definition: SerializableTreeBase.cs:105
static bool operator!=(StoredTransform lhs, StoredTransform rhs)
Used to check for inequality between StoredTransforms.
Definition: StoredTransform.cs:490
void AssignToTransform(Transform transformToAssignTo, bool restoreRootLocalNotWorld=false)
Use to assign the values stored in the TransformAndChildrenStorage to an actual UnityEngine....
Definition: TransformAndDecendantStorage.cs:231
void SendToStream(System.IO.BinaryWriter stream)
Implementation of IStreamable. Writes the current stats contained in this instance to the provided Bi...
Definition: UniqueIDString.cs:189
The Node class, is the runtime Node used by the tree that has references to children and parent....
Definition: SerializableTreeBase.cs:92
float ExposeAllPropertiesHeight()
Shortcut function to MemberExposerFunctions.ExposeAllPropertiesHeight that passes the appropriate dat...
Definition: ExposedObjectMembers.cs:278
Implement this interface on any class that draws to the screen, to provide it with a common way to ch...
Definition: IGraphicsTexureInterface.cs:11
static void LerpPosition(this Transform transform, Vector3 finalPosition, float fraction)
Convenience function used to get, lerp, and set the transform's position
Definition: TransformExtensions.cs:72
bool hasChanged()
This is one of the two primary functions for this class. It determines if the variable this attribute...
Definition: DeltaAttribute.cs:204
The class contains functions for Generated Various Prefs using the fieldName and, for the tool-tip th...
Definition: XmlDocsTooltipsForPrefs.cs:14
Definition: EditorPrefInterface.cs:5
static EditorPrefOption< Vector2 > startingXYAxisRotation
The initial rotation of the preview object, relative to the preview camera.
Definition: PreviewPrefs.cs:56
override bool GetPropertyExpanded(ExposedMember listProperty)
Used to lookup the last user-selected expanded state of the specified property.
Definition: LimitedListMember.cs:112
object _value
A reference to the current array of ValueTypes
Definition: PrefOptionArrayBase.cs:19
virtual bool TryGetMeshAndMaterialBlockForCamera(Camera cam, out MeshAndMaterialConfigSet meshAndMatsFound)
Attempts to get the MeshAnd Material block that has been assigned to the provided camera.
Definition: PerCameraMeshAndMaterials.cs:80
Default Editor for classes utilizing ExposedMemberAttributes.
Definition: DefaultExposedMemberEditor.cs:15
Class contains multiple functions for drawing gizmos
Definition: GizmoExtensions.cs:13
object LastCycleValue
stored value that will compared against the "live" value.
Definition: DeltaAttribute.cs:61
TransformDictionaryStorage(Transform transformToStore)
Constructor Generates the TransformStorageDictionary using the provided transform.
Definition: TransformDictionaryStorage.cs:36
bool colorInterfaceEnabled
When set to false, the color is not actually changed.
Definition: IGraphicsColorInterface.cs:18
static int CompareGradientColorKey(GradientColorKey a, GradientColorKey b)
Internal function used to see if two GradientColorKey are the same
Definition: GradientStorage.cs:57
bool Remove(TKeyType key)
Removes the specified key, and it's associated value, from the dictionary
Definition: SerializableDictionary.cs:200
This class is sued to parse Visual Studio generated XML containing class documentation,...
Definition: EmbededXMLTooltip.cs:14
bool HasKey(string key)
Returns true if key exists in EditorPrefs.
Definition: EditorPrefInterface.cs:74
static Matrix4x4 TransformRelativeToAncestor(this Transform transform, Transform ancenstorTransform)
Computes a transformation, relative to an ancestor transform, as a Metrix4x4.
Definition: TransformExtensions.cs:300
Only Children/direct descendants of a given node will be enumerated.
UniqueStringID(object o, string s)
Will generate UniqueStringID stats for this string, and use the object's GetHashCode() for the ID val...
Definition: UniqueIDString.cs:38
Provides functions used to get images from, and extract files a .dll, into the unity Project folder....
Definition: ExtractEmbededFilesInEditor.cs:20
This version of DeltaMonitor is meant specifically for monitoring the members of UnityEngine....
Definition: DeltaMonitorUnityObject.cs:20
override bool Equals(object obj)
Equals operator will return false if the object passed in is not a Gradient, or Gradient Storage obje...
Definition: GradientStorage.cs:76
virtual MemberInfo Info
Read-only reference to the MemberInfo that describes the ExposedMember.
Definition: ExposedMember.cs:48
This interface has two functions to read and write the contents of the implementing class to the stre...
Definition: StreamableInterface.cs:18
static Quaternion startingXYAxisQuaternion()
generates a Quaternions based upon the preference startingXYAxisRotation's X and Y values
Definition: PreviewPrefs.cs:119
bool hasACustomPropertyDrawer
True if the user or Unity has defined a custom properly drawer for this type of Object
Definition: PropertyStats.cs:47
static void DeleteAllSavedCategoryKeysFromPlayerPrefs()
Be removing all registered categories, this function will make previously registered category id's av...
Definition: ConditionalDebugCategoryRegistrar.cs:393
virtual void Save()
The Save function will attempt to store the current member _value into PrefInterface,...
Definition: PrefOptionBase.cs:284
static void RecordGUIStateAndSetToDefault(Rect position=new Rect())
Records the current GUI state, then sets the current GUI states to default. After this is called,...
Definition: EditorUtil.cs:418
This version of the SerializableTree<T> class is generally easier for storing ScriptableObjectsobject...
Definition: SerializableTree.cs:58
void SetAssetPath(string key, Object value)
PlayerPrefs cannot determine the resource path of an object reference. In the final build,...
Definition: PlayerPrefInterface.cs:158
void AssignToTransform(Transform transformToAssignTo, bool restoreRootLocalNotWorld=false)
Use to assign the values stored in the TransformStorageTree to an actual UnityEngine....
Definition: TransformDictionaryStorage.cs:76
static Rect GetArcRect(float radius, float curveAngle, float startingAngle)
Basic Geometry function. Given an arc of a specific radius, angle span, and starting angle,...
Definition: RectExtensions.cs:60
void SetupStringStats(int ID, string str)
Setup function performs the computation to generate the stats from the provided input....
Definition: UniqueIDString.cs:78
Interface that provides a standard way to access the material property block on various renderer mate...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:12
This class is used to access preferences stored via the PlayerPrefInterface. It is derived from the P...
Definition: PlayerPrefArrayOption.cs:13
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
draws the Root world transform, and invokes the base class to draw the tree of children transforms be...
Definition: TransformTreePropertyDrawer.cs:25
int childCount
Number of Children this node has, read-only.
Definition: SerializableTreeBase.cs:324
abstract void SetPropertyExpanded(T property, bool expanded)
Used to set the expanded state of the specified property.
static string ToStringG(this Vector3 vec)
Output a string showing a Vector3 with parenthesis and comma separated coordinates
Definition: Vector3Extensions.cs:217
Texture mainTexture
accessor used to store and retrieve the texture itself.
Definition: IGraphicsTexureInterface.cs:20
static void PrependToNextLog(int category, string message)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:558
override void DeltaDetected()
Derived classes should override this to define what happens when a change is detected.
Definition: AirCraft.cs:118
Property drawer for the CircularBuffer generic class. One MUST derive a version of this class,...
Definition: CircularBufferPropertyDrawer.cs:23
this class provides the user with the ability to have function called at a constant time intervals wh...
Definition: EditModeIntervalCallbacks.cs:19
static Vector3 Square(this Vector3 vec)
Returns the square of each component.
Definition: Vector3Extensions.cs:103
static void DrawPrefControl(this IAccessPreferences< int > prefOption)
This extension function is convenient to load and save the value as necessary, and display it in the ...
Definition: PrefOptionBaseEditorDrawingExtensions.cs:19
void OnBeforeSerialize()
Required to implement the unity ISerializationCallbackReceiver. It will convert the runtime dictionar...
Definition: SerializableDictionary.cs:142
This is a concrete, SerializedProperty type, variant of the abstract base class, LimitedListDrawer....
Definition: LimitedListProperty.cs:811
delegate void UpdateCallback()
Delegate defines the signature required for callback functions.
Menu tool to find the UniquePath for a given asset. This is useful for finding the UniquePath for bui...
Definition: AssetDatabaseHelper.cs:81
override bool Equals(object objectToCompare)
Generalized version of equality function. Determines if the object to compare is a Transform or Store...
Definition: StoredTransform.cs:354
Simple class used to store a single Material and MaterialPropertyBlock in one object.
Definition: MaterialConfig.cs:13
virtual void OnDisable()
OnDisable this class will unregister with EditorApplication.update if in the unity editor....
Definition: CallbackCamera.cs:228
override bool LoadAndGetPropertyExpanded(ExposedMember listProperty)
Refreshes any stored expanded state from storage, then assigns the expanded state to the property and...
Definition: LimitedListMember.cs:120
The node itself, then all descendants are enumerated, such that all children of each node are enumera...
bool hierarchyMode
The recored value of EditorGUIUtility.hierarchyMode
Definition: EditorUtil.cs:377
This class is assigned the InitializeOnLoad attribute, ensuring that TransformStorageDebugCategories ...
Definition: TransformStorageCatDebugSetupEditorMode.cs:12
Custom Editor for TextMeshAdapater
Definition: TextMeshToColorInterfaceAdapterEditor.cs:15
ExtractionInfo(Assembly dllAssembly, string filename, string assetPath, string dllNamespace, bool importTextureAsIcon, bool importTextureAsSprite)
Constructor for a single File's ExtractionInfo Use this version when you need import the file as a sp...
Definition: ExtractEmbededFiles.cs:184
static Object GetSelectedActiveGameObject()
returns Selection.activeGameObject
Definition: PerCameraMeshAndMaterialsEditorComponent.cs:34
override bool showOtherSection
specifies weather or not this section show be displayed
Definition: PerCameraMeshAndMaterialsEditor.cs:49
Example class that may be needed by the Squad class. Exposed members is the Squad class show how this...
Definition: SquadNPCAI.cs:11
This class is used to gather and store all the DeltaAttribute attributes in the class it resides in....
Definition: DeltaMonitor.cs:36
static void SetMainTexture(this IGraphicsMaterialPropertyBlockInterface blockInterfaceToSet, Texture tex)
Extension function for IGraphicsMultiMaterialPropertyBlockInterface's. Gets the MaterialPropertyBlock...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:209
Small set of volumetric functions
Definition: VolumeTransforms.cs:14
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
computes the height required to draw this control
Definition: TransformTreePropertyDrawer.cs:40
virtual void DestroyPreviewObjects()
Destroys all the dynamic objects needed to render the diorama like the preview object,...
Definition: EditorWithPreview.cs:184
static void CopyFrom(this Transform destination, Transform sourceTransform, bool SrcWorldNotLocal)
Copies local or global TRS values from the source transform, into the calling (this),...
Definition: TransformExtensions.cs:46
void PrependToNextLog(int category, params object[] messageObjects)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:348
void SetAssetPath(string key, Object value)
Determines th Path of the Object, and sets the string value of the preference associated with this ke...
ExposeMemberHeightDelegate exposeMemberHeightDelegate
function delegate that specifies how to tall the drawn property will be.
Definition: MemberExposerFunctions.cs:105
Action offerCreationFunctionWhenNull
This option is appropriate only for reference types, not structs or value-types. When specified,...
Definition: ExposedMember.cs:235
static void HideDioramaObjectsInHierarahcy(bool hide)
Definition: PreviewDioramaShoebox.cs:21
override bool Equals(object objectToCompare)
Generalized version of equality function. Determines if the object to compare is a Transform or Trans...
Definition: TransformAndDecendantStorage.cs:157
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Function performs the actual drawing of the TransformAndDecendntStorage object
Definition: TransformHierarchyStoragePropertyDrawer.cs:20
virtual Type systemType
Specifies the actual system type of the exposed property.
Definition: ExposedMember.cs:126
static void PopUp(string renamableString, System.Action< string > onOKCallback, bool cancelOnSelectionChange=true, string title=null, Rect screenPos=default(Rect), UnityEngine.Object potentialAssetToMove=null)
Open the rename window with the provided initial string and title. When the user clicks OK,...
Definition: RenamePopupWindow.cs:29
bool textureInterfaceEnabled
specifies weather or not the interface should affect changes to the display, or not.
Definition: IGraphicsTexureInterface.cs:16
static float ExposePropertyHeight(ExposedMember field, bool useGroups=true)
Determines the drawn height of the exposed property. If the property is not visible because it's grou...
Definition: MemberExposerFunctions.cs:1397
Editor Only class to creates resource files by extracting the resource from a dll.
Definition: ShaderExtractor.cs:12
void Add(TKeyType key, TValueType value)
Add the provided key/value pair to the dictionary
Definition: SerializableDictionary.cs:180
Dictionary< string, List< ExposedMember > > exposedPropertiesByGroup
Stores multiple lists of all the ExposedMember in the exposedObject. Each list contains only Expose...
Definition: ExposedObjectMembers.cs:26
static List< T > SimpleListFieldLayout< T >(GUIContent label, List< T > listToDisplay, DrawListItemDelegate drawListItemFunction=null, T defaultNewValue=default(T), bool numberElements=true)
This function takes a List of type T, and displays it using standard EditorGUILayout controls....
Definition: EditorUtil.cs:653
Basically a simple data structure used to store a transform's data. Many operators provides functiona...
Definition: StoredTransform.cs:18
virtual void OnDisable()
Unregister from Editor Callbacks and ObjectCallbackCamera. Does not remove existing camera and cashed...
Definition: PerCameraMeshAndMaterials.cs:342
bool DetectChangesInSet(int set)
Will check all stored attributes to see if their value has changed. Only DeltaAttributes that have be...
Definition: DeltaMonitor.cs:298
Color currentColor
Stores the current color that is assigned to the material property block.
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:103
virtual Color color
returns the currentColor that is assigned to the material property block. when set,...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:108
int childCount
Number of child nodes that this node has.
Definition: SerializableTreeBase.cs:28
abstract void PreCameraRendering(Camera cam)
This function is called immediately before the preview camera is rendered. Override and declare your ...
static Texture GetMainTexture(this IGraphicsMaterialPropertyBlockInterface blockInterfaceToGetTextureFrom)
Gets the MaterialProperty block of the blockInterfaceToGetTextureFrom, then extracts and returns the ...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:232
override bool Equals(object obj)
Checks if the provided object is a UniqueStringID, and invoked operator== if so, and returns false if...
Definition: UniqueIDString.cs:123
override void SetPropertyBlock(MaterialPropertyBlock dest, int matIndex)
SpriteRenderers do not use material property blocks, even though they use materials,...
Definition: SpriteRendererToGraphicsInterfaceAdapter.cs:32
override void SetArraySize(SerializedProperty listProperty, int newSize)
Adjusts the size of the array referenced in the provided property, to the specified size.
Definition: LimitedListProperty.cs:878
bool AlternateLabelConditional()
Used to determine if the normal label, or the alternateLabel should be used when displaying this cont...
Definition: ExposedMember.cs:437
Vector2 FloatRangeAttributeMinMax()
Returns the intergerRange attribute on this object. Only valid if hasRangeAttribute is true....
Definition: ExposedMember.cs:337
This namespace contains classes that provide various tools for use in the Unity Editor.
Definition: EmbededXMLTooltip.cs:5
GradientStorage(Gradient value)
Creates a new GradientStorage and internally stored Gradient object, and copies the values from the G...
Definition: GradientStorage.cs:23
static EditorPrefOption< bool > zipperWindowOpensFileSystemWindowToFolderAfterCompression
Should the Zipper window (accessible via file menu), open the file system to the specified file,...
Definition: EditorToolsOptions.cs:129
bool IsReadOnly
Implementation of ICollectable- always returns true, since the size of the array cannot be adjusted a...
Definition: CircularArray.cs:31
Definition: AirCraft.cs:16
static string GetUniqueAssetPath(UnityEngine.Object aObj)
Generates a unique path to built-in objects that can then be used by the LoadAssetFromUniqueAssetPath...
Definition: AssetDatabaseHelper.cs:56
XmlPreferenceInterface()
default constructor loads the document and hooks saving the document up to the Application....
Definition: XmlPreferenceInterface.cs:74
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:5
float max
get/set the maximum value the exposed property may take. usually, just assigned by the constructor.
Definition: ExposeMemberAttribute.cs:32
NodeAndAllDecendantsByLevelEnumerator(Node node)
Definition: SerializableTreeBase.cs:482
static Vector2 RoateAboutPoint(this Vector2 pointToRotate, Vector2 centerPoint, float angle)
compute rotation of a 2d point, about an arbitrary 2d point
Definition: TransformExtensions.cs:128
delegate bool ExposeMemberDelegate(Rect drawRect, ExposedMember field, GUIStyle guiStyle, object undoObject=null, GUIContent overrideLabel=null)
Defines the signature of a function used to draw the auto-layout version of a specific type's control...
virtual void Reset()
Instantiates the changeMonitor class.
Definition: MonoDeltaDetectorUnityBase.cs:28
static MaterialConfig[] MaterialBlockArray(Material[] mats)
Static utility function used to generate an array of MaterialBlocks, that uses the provided materials...
Definition: MaterialConfig.cs:39
abstract bool LoadAndGetPropertyExpanded(T property)
Refreshes any stored expanded state from storage, then assigns the expanded state to the property and...
bool AddChildren(Node parent, T[] data)
Convenience function used to store an array of data as new nodes. The new nodes will be added as chil...
Definition: SerializableTreeBase.cs:825
static EditorPrefOption< Vector3 > previewLightDirection
This Vector3 specified the direction the light will shine on preview objects.
Definition: PreviewPrefs.cs:47
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Computes the height of this property drawer
Definition: TransformHierarchyStoragePropertyDrawer.cs:41
static PrefInterfaceType interfaceReference
the singleton instance to be used for the specified IStorePreferences type
Definition: PrefOptionBase.cs:19
bool HasTexture(int matIndex)
Specifies if the material this instance uses, specified by the index has a _MainTexture
string instanceName
Name assigned to this instance, for potential display. By default instances will have a blank string ...
Definition: CatDebug.cs:57
bool importTextureAsIcon
When true (default Value), after extraction from the dll, the asset will be assigned TextureImporter ...
Definition: ExtractEmbededFiles.cs:47
Camera accessorReferenceCameraOrCurrentOrMain
This renderer requires a camera be specified in order to access its materials and mesh....
Definition: PerCameraMeshAndMaterials.cs:464
void InvokeCallbackForObject(MonoBehaviour target)
Function to manually invoke Callback for a particular object. Searches though all recorded callback f...
Definition: CallbackCamera.cs:141
Rect originalPostion
A Rect may optionally be provided as a parameter during record operations. Thought this Rect cannot b...
Definition: EditorUtil.cs:386
static int PerObjectBooleansDetailsID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:50
virtual Color color
Provides IGraphicsColorInterface functionality. will get/set the default color in the first material ...
Definition: CustomRenderer.cs:24
abstract void OnFoldOutGUI(Rect position, SerializedProperty property, GUIContent label)
Descendants must override this abstract function to specify how to draw the ScriptableObject,...
bool prependInstanceNameSingleLine
When single-line false, a newline will be included in the log, after the instance name....
Definition: CatDebug.cs:68
static void StringListAsMaskProperty(Rect position, SerializedProperty property, GUIContent label, string[] fullList)
This property drawing function will display a SerializedProperty, that represents and array of string...
Definition: EditorUtil.cs:208
bool Equals(StoredFullTransform trasf)
Specific version of equality function used to compare with a Transform object. It will compare BOTH l...
Definition: StoredFullTransform.cs:242
virtual void GetPropertyBlock(out MaterialPropertyBlock dest, int matIndex)
Finds and sets the reference of parameter dest, to the Property block found in the renderer's materia...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:167
override bool Equals(object objectToCompare)
Generalized version of equality function. Determines if the object to compare is a Transform or Trans...
Definition: TransformDictionaryStorage.cs:96
static Vector3 Scaled(this Vector3 vec, Vector3 scale)
Scales this Vector3, by another Vector3 and returns the result, without modifying this vector....
Definition: Vector3Extensions.cs:61
abstract UniqueStringID GenerateListScrollPositionAndDrawSizeKey(T property, string label)
Creates a new UniqueStringID from the provided property, and optionally, the provided label....
static string GetLabelForField(this System.Type declaringType, string fieldName)
The specified fieldName is used to find a field in the provided Type. It uses this fieldInfo to invok...
Definition: EmbededXMLTooltip.cs:39
bool isASavedAsset
Specifies if the object referenced by the SerializedProperty is a saved asset.
Definition: PropertyStats.cs:39
static void Reset()
Deletes all existing key/value pairs. Resets the cleanup timer.
Definition: PerObjectNameBooleans.cs:145
string GetString(string key)
Returns the value corresponding to key in the preference file if it exists.
InitializeOnEditorReloadedAttribute(bool allowExecutionOnPlay=false)
Constructor for InitializeOnEditorReloadedAttributes
Definition: InitializeOnEditorReloadedAttribute.cs:21
bool Equals(Transform transformToCheck)
Use to compare with an existing transform. Compare local coordinate values in the transform and all c...
Definition: TransformAndDecendantStorage.cs:174
void ExposeAllProperties(Rect drawRect, GUIStyle guiStyle=null)
Shortcut function to MemberExposerFunctions.ExposeAllProperties, passing the appropriate parameters f...
Definition: ExposedObjectMembers.cs:258
override string ToString()
Overridden ToString function will return the filename member, but will remove any trailing "....
Definition: ExtractEmbededFiles.cs:198
void UnRegisterCamera(Camera cam)
Remove the specified camera from rendering this object, and removes the cache mesh reference from the...
Definition: PerCameraMeshAndMaterials.cs:283
override string ToString()
Displays the stats stored in this instance.
Definition: UniqueIDString.cs:176
static EditorTestObject EditorIsObjectAPreFab
This delegate is assigned by editor class GameObjectExtensionEditorComponent, when the editor is init...
Definition: GameObjectExtensions.cs:95
override string ToString()
Returns the path of the exposedMember.
Definition: ExposedMember.cs:152
static Object EditorSelectedObject()
Confirms the system is running in the editor, and if so, invokes the delegate editorSelectedObjectFun...
Definition: PerCameraMeshAndMaterials.cs:210
abstract float GetPropertyHeight(T property)
Computes and returns the height of the specified property.
static void PrependToNextLog(string message)
This function will store the provided text, and prepend it to the text of the next call to a Log func...
Definition: CatDebug.cs:543
void SetInt(string key, int value)
Sets the integer value of the preference identified by key to the provided value in EditorPrefs.
Definition: EditorPrefInterface.cs:96
static string ExtractFileToString(Assembly dllAssembly, string filename, string dllNamespace, bool logToConsole=false)
Extracts the file from the dll specified, and returns the data found inside as a string....
Definition: ExtractEmbededFiles.cs:329
static void RemoveCallbacks()
If the user disables drawing previews in the project window, via a preference option,...
Definition: ProjectViewIcons.cs:57
This is the Class version of SerializableTree that is recommended for use in Unity....
Definition: SerializableTree.cs:14
override bool Equals(Transform compareTransform)
Specific version of equality function used to compare with a Transform object. It will compare local ...
Definition: TransformChildrenDictionaryStorage.cs:30
static void UnRegisterObjectWithCallbackCamera< TypeOfCallbackCamera >(CameraCallbackSignture function, Camera cam)
Removes the function from the callback set of the provided camera. The callback set the function is r...
Definition: CallbackCamera.cs:123
This class provides two transformation and a descendant-encapsulation functions that can be applied t...
Definition: IGraphicsBounds.cs:28
DeltaMonitorSerialized(object _objectToMonitor)
Creates a DeltaMonitorUnity Object, that will monitor the provided object for changes in members that...
Definition: DeltaMonitorSerialized.cs:27
Demonstrates how to use ExposeProperty attributes on various kinds of members, and how to optionally ...
Definition: AcessorPropertyTester.cs:46
static int ExposeMembersCategoryID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:30
static Color GetColor(this IStorePreferences interfaceReference, string key)
Gets the Color (RGBA) value associated with this key, from prefBase. Behind the scenes,...
Definition: MultiKeyPrefHelper.cs:171
TransformChildrenDictionaryStorage()
Calls base version of constructor.
Definition: TransformChildrenDictionaryStorage.cs:18
int index
specifies the index into the elementOf collection that this ExposedCollectionMemberElement represents...
Definition: ExposedMember.cs:599
Example showing usage of DefaultExposedMemberEditor to display instances of the Squad class.
Definition: SquadEditor.cs:13
int IndexOf(object value)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:255
Definition: SimpleLineList.cs:7
This class is just a set of ProgressThreadParam. Calling the various member functions,...
Definition: ProgressThreadParam.cs:59
SerializableDictionary(int len=0)
Initializes the Dictionary with a number of elements allocated, but does not assign any elements.
Definition: SerializableDictionary.cs:35
virtual void SetPropertyBlock(MaterialPropertyBlock dest, int matIndex)
Matches the form of the unity Renderer function of the same name. Caches and assigns the provided Mat...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:178
StoredFullTransform(Transform transform_to_copy)
Constructor requires a transform to copy data from. If no transform is provided it will use "unity" (...
Definition: StoredFullTransform.cs:92
void CopyTo(T[] array, int arrayIndex)
Copies the circular array into the specified array, starting at the specified index.
Definition: CircularArray.cs:215
EditorPrefOptionArray(ValueType[] _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: EditorPrefOptionArray.cs:23
override ExposedMember GetArrayElementAtIndex(ExposedMember listProperty, int index)
Used to get the array elements from the list. Which element is returned is defined by the integer par...
Definition: LimitedListMember.cs:155
void OnAfterDeserialize()
This function is required by the ISerializationCallbackReceiver Interface. Called automatically via t...
Definition: SerializableTree.cs:29
override void OnInspectorGUI()
draws the default material property, and update option sections, if they are not disabled
Definition: PerCameraMeshAndMaterialsEditor.cs:55
int CurrentMaxSet
If this variable is not negative; it will be used to limit the DeltaAttributes checked to include onl...
Definition: DeltaMonitor.cs:83
virtual T DefaultNodeData()
This virtual function should be overridden by descendants, to provide a default value for data object...
Definition: SerializableTreeBase.cs:745
This class uses the UnityTools module class SerializedTreePropertyDrawerBase to provide a property fo...
Definition: TransformTreePropertyDrawer.cs:17
string GetString(string key)
Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
Definition: PlayerPrefInterface.cs:50
void GetAllLeavesList(IList< Node > genericListInterface, bool groupByLevel=true)
This function will Add, to the provided genericListInterface, all the leaves (childless-descendants) ...
Definition: SerializableTreeBase.cs:247
This attribute may be applied to FIELDS and PROPERTIES only (Called "variables", for brevity,...
Definition: DeltaAttribute.cs:24
static Vector3 Reciprocal(this Vector3 vec)
Returns 1 divided by the parameter's coordinate values, and returns the result as a new Vector3....
Definition: Vector3Extensions.cs:192
static void Write(this System.IO.BinaryWriter writeStream, IStreamable streamableObject)
System.IO.BinaryWriter extension function that sends the streamableObject to the specified binary wri...
Definition: StreamableInterface.cs:72
static Vector2 XZ(this Vector3 vec)
Converts the X and Z coordinates of a Vector3 into a new Vector2's x and y coordinates.
Definition: Vector3Extensions.cs:28
A static functional class that provides several useful functions relating to ScriptableObject Assets ...
Definition: ResourceSystem.cs:15
static Shader PreviewShader
This is a special shader that is used to render preview objects to the preview camera only,...
Definition: PreviewDioramaShoebox.cs:122
static EditorPrefOption< bool > showAxisAtBoundsCenter
When the bounds of the drawn object is not centered on the origin, this option will,...
Definition: PreviewPrefs.cs:90
void GetPropertyBlock(out MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name.
virtual void Reset()
Resets all local members to default values
Definition: PerCameraMeshAndMaterials.cs:305
StoredTransform rootWorldTransform
The root StoredTransform is the only one that we stores a WORLD transformation for.
Definition: TransformStorageTree.cs:22
a Variant of Circular array, with 2 internal indexes: a start and end index. The collection acts like...
Definition: CircularArray.cs:298
This component will ONLY extract bound information from other components, on this object and it's des...
Definition: DecendantsOnlyBounds.cs:12
This attribute only does anything when applied to strings. It will ensure a multi-line control is use...
Definition: ExposeMemberAttribute.cs:53
The class contains functions for Generated Various Prefs using the fieldName and, for the tool-tip th...
Definition: PrefsFromXmlDocs.cs:11
static XmlPrefOption< ValueType > GenNewXmlPrefOptionUsingXMLForTooltip(ValueType defaultValue, string fieldName, System.Type containingClass, bool alwaysLoadSaveOnAccess=true)
This static function is used to create an instance of a XmlPrefOption. By passing in the field-name o...
Definition: PrefsFromXmlDocs.cs:66
float progress
Computes the average of the progress for each element of the threadParamList.
Definition: ProgressThreadParam.cs:69
Example usage of DefaultExposedPropertyExpandablePropertyDrawer for drawing ObjectSize references wit...
Definition: ObjectSizePropertyDrawer.cs:15
void Save()
Writes all modified preferences to disk.
Definition: XmlPreferenceInterface.cs:246
virtual Bounds bounds
Read-only accessor computes and returns the bounds encapsulation of all other IGraphicsBounds on this...
Definition: DecendantsOnlyBounds.cs:19
We don't NEED to declare a custom property drawer for WeaponType objects: We already have a DefaultEx...
Definition: WeaponTypePropertyDrawer.cs:10
bool isViewable
This accessor is used to set or get the current isViewableState of this object, and it's descendants....
Definition: DecendantIViewableToggler.cs:21
A NodeEnumberator that iterates though the node itself, and all it's children. It will not iterate an...
Definition: SerializableTreeBase.cs:502
override object Instance
Read-only reference to the object that the elementOf collection is a member of.
Definition: ExposedMember.cs:710
static List< Transform > AllDecendantsList(this Transform transform, bool groupByLevel=true)
Return a List of transforms that are all the descendants of the calling transform.
Definition: TransformExtensions.cs:421
static float GetLimitedListPropertyHeight(ExposedMember property, GUIContent label)
Use to compute the total height of a drawn LimitedListProperty, when using the provided property to r...
Definition: LimitedListMember.cs:219
static string GetClassMemberNodeFromXMLinFile(string XmlFilePathAndName, string classNameMemberName, string nodeName, bool removeWhitespace=true, bool removeCRLF=true)
Assumes the XML file required is present in the asset folder, logs an error if not found....
Definition: EmbededXMLTooltip.cs:92
static void UnityUnZipFileWindow()
Creates a menu Item under File-> /<EyE>-> UnGzipFile which will open up a window prompting the user t...
Definition: ZipperMenu.cs:44
This class exists to provide CallbackCameras with a per-frame trigger (EditorApplication....
Definition: CallbackCameraEditorComponent.cs:10
static bool IsArrayNotEmpty< T >(this T[] list)
Given the specified array this function will check to see if it exists, and if so,...
Definition: CollectionExtensions.cs:35
You can derive your own editors, for objects derived from custom renderer, from this class....
Definition: CustomRendererEditor.cs:15
string FullPathWithFileName
The full path of the file location, including the filename
Definition: ExtractEmbededFiles.cs:72
Stores a transform, and it's descendant transforms as a navigable tree or local transformations....
Definition: TransformStorageTree.cs:16
Simple serializable object example. This class cannot be stored as an asset, but can be serialized as...
Definition: ObjectSize.cs:13
static readonly StoredTransform Identity
A static StoredTransform that represents no transformations.
Definition: StoredTransform.cs:174
override int ArraySize(SerializedProperty listProperty)
Extracts and returns the size of the array provided
Definition: LimitedListProperty.cs:869
void Insert(int index, object value)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:265
This class is used to store a unique value for a particular integer/string combination.
Definition: UniqueIDString.cs:18
This class contains static functions for drawing large lists in ExposedMembers. Optimized to draw onl...
Definition: LimitedListMember.cs:23
override float GetPropertyHeight(ExposedMember property)
Computes and returns the height of the specified property.
Definition: LimitedListMember.cs:174
ExposedCollectionMemberElement(ExposedMember _elementOf, int _index)
The constructor for this class takes an ExposedMember, of which this instance will represent an eleme...
Definition: ExposedMember.cs:610
static Vector3 InverseScaled(this Vector3 vec, Vector3 scale)
Inverse-Scales this Vector3, by another Vector3 and returns the result. Does not modify the calling V...
Definition: Vector3Extensions.cs:76
Base class for SerializedTrees. Stored data in both serializable lists, and non-serializable linked-n...
Definition: SerializableTreeBase.cs:81
bool Equals(Transform unityTransform)
Specific version of equality function used to compare with a Transform object. It will compare BOTH l...
Definition: StoredFullTransform.cs:215
This is a sample data class we want to store in a tree. All members to be stored, must be serializabl...
Definition: MenuTree.cs:13
bool Contains(Node nodeToCheck)
recursively checks all children of this node to see if they contain a reference to the provided node....
Definition: SerializableTreeBase.cs:155
static void ClearHashCodeFile()
Deletes all files in the current directory that end with fileNameConst. This will remove all saved fo...
Definition: PerObjectNameBooleans.cs:409
Static extension class that provides useful functions on things that can be done through MaterialProp...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:89
static Vector3 Sign(this Vector3 vec)
Returns the sign of each component of this vector, as a new vector.
Definition: Vector3Extensions.cs:178
static bool AproxEquals(this float a, float b)
compares two floating point numbers to 4 decimals of accuracy
Definition: Mathg.cs:99
Matrix4x4 ToMatrix()
Provides a TRS Matrix4X4 based upon this stored transform.
Definition: StoredTransform.cs:299
static void SetValue(this MemberInfo memberInfo, object forObject, object toValue)
This is an Extension Method for the MemberInfo class. It provides specific types of MemberInfo instan...
Definition: MemberInfoExtension.cs:80
StoredTransform local
this member stores the local values of the transform.
Definition: StoredFullTransform.cs:22
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
This Code is called upon to perform the actual drawing of the tree.
Definition: SerializedTreePropertyDrawerBase.cs:33
static bool SerializedPropertiesOverride
If this value is true, SerializedProperties pass to this function will not use the internal isExpande...
Definition: PerObjectNameBooleans.cs:34
virtual void OnDestroy()
Destroys the dynamic elements of the diorama.
Definition: EditorWithPreview.cs:94
In order to use the EditorWithPreview you must derive your own version of it. When you override the a...
Definition: EditorWithPreview.cs:20
static void SendToStream(this IStreamable streamableObject, System.IO.Stream writeStream)
IStreamable extension function that sends the streamableObject to the specified Stream....
Definition: StreamableInterface.cs:93
StoredTransform rootWorldTransform
the world transform member represents the world transform of the root object
Definition: TransformDictionaryStorage.cs:21
Contains various static convenience and extension function for Unity GameObjects.
Definition: GameObjectExtensions.cs:12
this class can be used to make a standard Unity Transform work with the CheckTransformChangedSinceLas...
Definition: CheckTransformChangedSinceLastCheckByObject.cs:135
void PrependToNextLog(int category, string message)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:320
virtual void OnEnable()
OnEnable this class will register with EditorApplication.update if in the unity editor,...
Definition: CallbackCamera.cs:217
List< CameraCallbackSignture > callbacksSet
Stores the set of callback functions registered with this camera. Objects/callback pairs are removed ...
Definition: CallbackCamera.cs:41
bool hasDetailsToDisplay
True when the serialized property contains multiple elements or values to display.
Definition: PropertyStats.cs:55
override void SetArraySize(ExposedMember listProperty, int newarraySize)
Adjusts the size of the array referenced in the provided property, to the specified size.
Definition: LimitedListMember.cs:80
void Insert(int index, T item)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:169
void Log(int category, string message)
This function will take a single string, and if the category is enabled, and if a DEBUG build is runn...
Definition: CatDebug.cs:239
override bool AllowSceneObjects()
By default scene objects may be selected. Override this function in your derived class to change this...
Definition: DefaultExpandablePropertyDrawer.cs:39
static float GetTotalPropertyHeight(SerializedProperty property, GUIContent label, bool propertyAlwaysExpanded=false)
Get the current height of the property. Changes depending on current foldout state,...
Definition: ExpandableObjectPropertyDrawer.cs:659
This version of DeltaMonitor is meant specifically for use with Unity, thus it's namespace of Unity,...
Definition: DeltaMonitorSerialized.cs:19
void SetAssetPath(string key, Object value)
Determines th Path of the Object, and sets the string value of the preference associated with this ke...
Definition: XmlPreferenceInterface.cs:329
override void SetPropertyBlock(MaterialPropertyBlock source, int materialIndex)
Sets the MaterialPropertyBlock assigned to whichever camera is referenced by the accessorReferenceCam...
Definition: PerCameraMeshAndMaterials.cs:651
static bool MollerTrumboreTriangleIntersection(Vector3 V1, Vector3 V2, Vector3 V3, Vector3 O, Vector3 D, out float dist)
open-source ray detection algorithm- converted to C#, and to use unity Vector3s Get the intersection ...
Definition: Mathg.cs:177
NodeChildrenEnumerator(Node node)
Definition: SerializableTreeBase.cs:531
Used to Automatically draw a DeltaMonitor variable as a MaskFied, allowing the user to select which f...
Definition: DeltaMonitorDrawer.cs:23
bool ExposeProperty(Rect drawRect, string name, GUIContent overrideLabel=null, GUIStyle guiStyle=null, bool useGroups=true)
Rect based variant of the ExposeProperty function. Function used lookup the exposed-property with the...
Definition: ExposedObjectMembers.cs:209
IEnumerator< T > GetEnumerator()
This enumerator iterated though elements that have been push into the buffer, and have not yet been p...
Definition: CircularArray.cs:338
StoredTransform rootWorldTransform
the world transform member represents the world transform of the root object
Definition: TransformAndDecendantStorage.cs:124
int category
the ID assigned by the registrar to this debug category
Definition: ConditionalDebugCategoryRegistrar.cs:17
static EditorPrefOption< int > LimitedListPropertyDrawerSliderMinHeight
DrawHeight sliders for LimitedListPropertyDrawers will use this as the minimum value they may be set ...
Definition: EditorToolsOptions.cs:106
string[] fullList
List of all names that are available for selection. This list may be grown by the user at anytime,...
Definition: OptionNames.cs:51
static void UnRegister(IntervalCallback callback)
This function is used to prevent a previously registered callback function from being called any more...
Definition: EditModeIntervalCallbacks.cs:50
override void SetupPreviewObject()
Performs the setup necessary for the PreviewObject to be drawn to the preview camera....
Definition: MeshEditorWithPreview.cs:20
abstract void DeltaDetected()
Derived classes should override this to define what happens when a change is detected.
override Bounds GetBounds()
This function will allow the preview camera to be properly placed, such that it encompass the bounds ...
Definition: MeshEditorWithPreview.cs:59
static void RegisterObjectWithCallbackCamera< TypeOfCallbackCamera >(CameraCallbackSignture function, Camera cam)
The function passed in will be called every time the CallbackCamera determines a notification is requ...
Definition: CallbackCamera.cs:81
static Material AxisMaterial
Material that will be used to draw the axis in preview. if it does not exist yet, it will be created ...
Definition: PreviewDioramaShoebox.cs:191
void ClearAppendText(int category)
Clears the prepend text for the provided category, if any exists.
Definition: CatDebug.cs:392
bool IsEditorAddKeyValid
ReadOnly property that return True, if the new entry key editorNewKeyValue does not already exist in ...
Definition: SerializableDictionary.cs:69
static void Save(string keyParam, object _value)
A Primary Function of this class, this static version takes a key and an object, determines the appro...
Definition: PrefOptionBase.cs:293
static GUIState defaultState
The default state for the GUI is indentLevel=0, hierarchyMode = false, enabled = true,...
Definition: EditorUtil.cs:402
virtual bool HasTexture(int matIndex)
Specifies if the material the renderer uses (at the provided index), has a _MainTexture
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:220
bool allowExecutionOnPlay
When true, the method this attribute is applied to will execute when the user clicks play in the edit...
Definition: InitializeOnEditorReloadedAttribute.cs:26
static int maxTextLinesHeight
When using Multi-line ExposedMembers for strings- this value will define the maximum number of lines ...
Definition: EditorUtil.cs:48
object defaultValue
Default array, assigned to the run-time value, when the preference is deleted, or a not-yet-existing-...
Definition: PrefOptionArrayBase.cs:23
static EditorPrefOption< int > SaveIconAreaWidth
Width to draw the save icons for ExpandableObjectPropertyDrawer s
Definition: EditorToolsOptions.cs:75
static EditorPrefOption< float > LimitedListPropertyDrawerFoldoutDarkenFactor
The currentBackground color will be adjusted by this multiple every time it is darkened....
Definition: EditorToolsOptions.cs:101
ExposeRangeAttribAttribute(float min, float max)
Constructor for the ExposeRangeAttribAttribute. Take min and max range values as parameters.
Definition: ExposeMemberAttribute.cs:41
override string Name
Similar to the base class version, but this override appends [ index ] to the end of the elementOf's ...
Definition: ExposedMember.cs:662
Definition: MemberInfoExtension.cs:9
void Reset()
Reset the stored values to unity/identity, which represents NO transformation.
Definition: StoredFullTransform.cs:178
static object GetValue(this SerializedProperty property, bool displayWarnings=false)
This SerializedPropety extension function takes an instance of a Serialized Property and returns the ...
Definition: SerializedPropertyExtensions.cs:304
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Function performs the actual drawing of the SerializableDictionary object
Definition: SerializableDictionaryPropertyDrawerBase.cs:52
static Vector3 Abs(this Vector3 vec)
Returns the absolute value of each component.
Definition: Vector3Extensions.cs:116
virtual Bounds bounds
Returns the local bounds of this object as defined by the virtual GetLocalBounds function....
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:240
ExtensionUnity Classes that are specific to DeltaDetector.
Definition: DeltaMonitorSerialized.cs:8
ExposedObjectMembers exposedObjectProperties
This member stores the exposed properties for the target object.
Definition: DefaultExposedMemberEditor.cs:20
static System.Type TypeOfCustomPropertyDrawer(System.Type drawerForType)
Returns the type of the Custom PropertyDrawer, if any, for the specified runtime type.
Definition: EditorUtil.cs:274
all descendants are enumerated, such that all children of each node are enumerated before the next si...
static float PI2
read-only accessor for math constant, 2.0 * π
Definition: Mathg.cs:35
int CurrentBufferLength()
The size of the current buffer, when 0 this indicates there are no items remaining in the buffer to b...
Definition: CircularArray.cs:381
static void SetColor(this IGraphicsMultiMaterialPropertyBlockInterface blockInterfaceToSet, int matIndex, Color color)
Extension function for IGraphicsMultiMaterialPropertyBlockInterface's. Sets the MaterialPropertyBlock...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:170
static bool IsDecendantOf(this Transform transform, Transform transformToCheck)
Check if a particular transform is a descendant of another transform.
Definition: TransformExtensions.cs:363
static void PopSerializedPropertyExtendedPathInfo()
When ascending a level, from the sub-property of a serializProperty, after displaying/processing it,...
Definition: PerObjectNameBooleans.cs:82
static void SwapValues(ref Vector3 num1, ref Vector3 num2)
Swaps the value in two referenced Vector3's.
Definition: Mathg.cs:120
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Invoked by the UnityEditor, this function should not be overridden in descendants.
Definition: ExpandableObjectPropertyDrawer.cs:690
static int defaultColorID
Initialized at first use of MaterialPropertyBlockInterfaceExtensions, to store the colorId for "_Colo...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:95
string dllNamespace
Namespace the asset is assigned to, in the DLL. This value is defined in the project that compiled th...
Definition: ExtractEmbededFiles.cs:42
static DebugCategorySettingsPlayerPref GetCategoryStateOption(int catID)
Finds the PlayerPrefOption that stores the state of the specified category. if not registered,...
Definition: ConditionalDebugCategoryRegistrar.cs:319
string GetString(string key)
Returns the string value corresponding to key in the preference file if it exists in EditorPrefs.
Definition: EditorPrefInterface.cs:66
int TotalNodeCount()
Counts the total number of nodes it the entire tree.
Definition: SerializableTreeBase.cs:754
static float GetDistanceFromOriginToCubeSurfacePointInDirection(Vector3 normalizedDirection, float cubeSize)
Computes the distance from a cube's center to its surface, in a given direction.
Definition: VolumeTransforms.cs:45
virtual bool HasTexture(int matIndex)
Specifies if the material this instance uses, specified by the index has a _MainTexture
Definition: CustomRenderer.cs:349
abstract void SetArraySize(T listProperty, int newSize)
Adjusts the size of the array referenced in the provided property, to the specified size.
static bool neverRunMaterialChecks
Experimental optimization, not recommended to change. When set to true, the various GetX and SetX ext...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:116
override T DefaultNodeData()
Overridden function will use
Definition: SerializableTreeBase.cs:1068
bool Remove(KeyValuePair< TKeyType, TValueType > item)
Removes the specified key-value pair from the dictionary.
Definition: SerializableDictionary.cs:260
string Key
The unique key used to reference this prefOption in storage.
Definition: PrefOptionBase.cs:97
static Action CreateActionFromMethodInfoAndInstance(this MethodInfo methodInfo, object instance)
Creates a delegate that will invoke the function specified in the methodInfo, using the object specif...
Definition: ReflectionExtensions.cs:203
static object GetValue(this MemberInfo memberInfo, object forObject)
This is an Extension Method for the MemberInfo class. It provides specific types of MemberInfo instan...
Definition: MemberInfoExtension.cs:32
override bool AllowCreation()
Descendants must override this abstract function to change it's current behavior, which is to ALLOW t...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:75
static void DebugDrawLine(Vector3 start, Vector3 end, Transform world)
Utility functions, draws a debugLine, transformed by the provided world transform
Definition: TransformExtensions.cs:113
Definition: CatDebugExample.cs:7
int IndexOf(T item)
IList function used to find the index of a specified element
Definition: CircularArray.cs:159
static void DisplayCategoriesOnGUI()
This function displays the PlayerPrefOptions that define the behavior of CatDebug functions....
Definition: CategoricalDebugOptionsGUI.cs:43
bool isProcessing
returns true if ANY ProgressThreadParam in the set is still processing.
Definition: ProgressThreadParam.cs:91
static PrefOptionBase< ValueType, PrefInterfaceType > GenNewPrefOptionBaseUsingXMLForTooltip< PrefInterfaceType >(ValueType defaultValue, string fieldName, System.Type containingClass, bool alwaysLoadSaveOnAccess=true)
This static function is used to create an instance of a PrefOptionBase. By passing in the field-name ...
Definition: PrefsFromXmlDocs.cs:28
Transform transform
reference to the Transform of this object. Used when providing the bounds relative to another transfo...
Definition: IGraphicsBounds.cs:21
override void SetupPreviewObjectRendererWithMaterial(Material previewMaterial)
Definition: MeshEditorWithPreview.cs:36
virtual void UpdateMaterialPropertyBlockForCamera(Camera cam, ref MaterialConfig[] matProperties)
This function is called every update cycle. This property block will be used when rendering the mesh ...
Definition: PerCameraMeshAndMaterials.cs:112
bool isAnObjectReference
Specifies if the value stored in the SerializedPreoperty is n object reference, or a value.
Definition: PropertyStats.cs:27
static T CopyMembers< T >(T original, T destination)
A Fairly dangerous function to use, it copies all non-static fields and properties from one instance ...
Definition: ReflectionExtensions.cs:169
override bool Equals(object objectToCompare)
Generalized version of equality function. Determines if the object to compare is a Transform or Trans...
Definition: TransformStorageTree.cs:76
virtual TValueType[] Value
This Accessor's get function returns the current value of this preference. This current value is load...
Definition: PrefOptionArrayBase.cs:68
System.Type fieldType
The type of the object referenced by the SerializedProperty
Definition: PropertyStats.cs:63
virtual System.Object GetValue()
Used to retrieve the current value of the exposed property, contained in the object referenced by m_I...
Definition: ExposedMember.cs:63
void Save()
Save the last value written to storage.
ExtractionInfo(Assembly dllAssembly, string filename, string assetPath, string dllNamespace, bool importTextureAsIcon)
Constructor for a single File's ExtractionInfo Use this version when you want to extract from a DLL t...
Definition: ExtractEmbededFiles.cs:124
void DrawAxis(Camera cam, Vector3 offset)
Draws an Axis based upon PreviewPrefs settings to the provided camera.
Definition: EditorWithPreview.cs:536
Texture currentMainTexture
Cashed reference to the texture used.
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:324
Color color
Accessor that stores and retries the color itself.
Definition: IGraphicsColorInterface.cs:22
virtual void SetValue(System.Object value)
Used to assign a value to the exposed property, contained in the object referenced by m_Instance.
Definition: ExposedMember.cs:91
StoredTransform(Transform transform_to_copy)
Create a new transform storage object. The constructor for this struct requires a transform from whic...
Definition: StoredTransform.cs:81
Collider colliderRef
Specifies which collider to provide an IGraphicsBounds interface for.
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:20
Definition: IStorePreferences.cs:3
bool changeResult
Publicly over-writable. If set to true, will remain so until DetectChanges or DetectChangesInSet is c...
Definition: DeltaMonitor.cs:68
static EditorPrefOption< bool > ClearObjectCacheOnEditorQuit
Specifies whether object open/close states in editor GUI should be cleared at the end of each session...
Definition: EditorToolsOptions.cs:53
static void PopUp(string title=null, Rect screenPos=default(Rect))
Open the rename window with the provided initial string and title. When the user clicks OK,...
Definition: AssetDatabaseHelper.cs:94
string groupEnableControl
Applicable only to boolean type members. The specified group is enabled, or disabled(and hidden),...
Definition: ExposeMemberAttribute.cs:134
virtual void Reset()
Resetting the component will for an update of collierRef. It will attempt to find the component on th...
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:59
UpdateOption
These options define when something will be recomputed.
Definition: PerCameraMeshAndMaterials.cs:25
void GetPropertyBlock(out MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name.
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:147
virtual bool Equals(Transform compareTransform)
Specific version of equality function used to compare with a Transform object. It will compare local ...
Definition: TransformDictionaryStorage.cs:112
static string DebugPrefKeyByIndex(int key_index)
Gets the key for a DebugCategorySettings with the specified index
Definition: ConditionalDebugCategoryRegistrar.cs:141
static string Unzip(byte[] bytes)
Takes the provided bytes and assumes they makeup a gzipped string. It attempt to decompress the strin...
Definition: Zipper.cs:96
static void AllDecendantsList(this Transform transform, ref List< Transform > list, bool groupByLevel=true)
Appends to the provided list, references to transforms that are all the descendants of the calling tr...
Definition: TransformExtensions.cs:437
bool RemoveNode(Node nodeToRemove)
Remove this node from tree, by removing it from it's parent's children list. Does not destroy the Nod...
Definition: SerializableTreeBase.cs:839
void Reset()
Reset the stored values to unity, which represents NO transformation.
Definition: StoredTransform.cs:188
override void OnFoldOutGUI(Rect position, SerializedProperty property, GUIContent label)
Invoked by the base class when the ExpandableObject is actually expanded. This function will draw the...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:47
bool isViewable
Accessor used to set/get the current isViewable state.
Definition: IGraphicsViewable.cs:17
This namespace includes all classes that are meant to provide extended functionality to Unity.
Definition: NameSpaceAndEyeMainPage.cs:28
static void RestoreGUIState()
Restores the last recorded GUI State back to the current GUI state.
Definition: EditorUtil.cs:435
StoredTransformList(List< Transform > store)
constructor used to generate a new StoredTransformList provided a List of transforms
Definition: TransformAndDecendantStorage.cs:19
delegate Component EditorAddComponentWithUndo(GameObject gameObject, System.Type componentType)
Defines a delegate signature that takes a GameObject, and component type, and returns a reference to ...
ExtractionInfo(string filename, string assetPath, string dllNamespace, bool importTextureAsIcon)
Constructor for a single File's ExtractionInfo Use this version when you want to import the extracted...
Definition: ExtractEmbededFiles.cs:143
StoredTransform world
this member stores the world values of the transform.
Definition: StoredFullTransform.cs:27
override void OnFoldOutGUI(Rect position, SerializedProperty property, GUIContent label)
Defines what to draw when the property has been expanded (folded-out).
Definition: WeaponPropertyDrawer.cs:13
SerializableTreeNode SerializableIndexNode()
This function is used to Create a serializedIndexNode instance, based on this runtime node.
Definition: SerializableTreeBase.cs:692
override void DrawElementProperty(Rect r, ExposedMember property, int index)
Actually drawing code for an element of the list. The property parameter will provide the data to be ...
Definition: LimitedListMember.cs:185
static Rect Encapsulating(this Rect rect, Rect recttoAdd)
Simple function to expand a rect, if necessary, such that it includes the specified second Rect....
Definition: RectExtensions.cs:38
virtual IEnumerable< Node > GetEnumeratorByMethod(TreeNodeEnumerationMethod method)
This function returns the appropriate NodeEnumerator, given the provided TreeNodeEnumerationMethod....
Definition: SerializableTreeBase.cs:576
static void PreferencesGUI()
Function that displays the preference options for the PreviewEditor module
Definition: PreviewPrefs.cs:138
Definition: OptionNamesDrawer.cs:6
int ReadFromStream(System.IO.BinaryReader readStream)
Implementation of IStreamable. Reads the data contained in the provided BinaryReader into the stats c...
Definition: UniqueIDString.cs:201
override void GetPropertyBlock(out MaterialPropertyBlock dest, int materialIndex)
Gets the MaterialPropertyBlock assigned to whichever camera is referenced by the accessorReferenceCam...
Definition: PerCameraMeshAndMaterials.cs:556
static int GetCategoryID(string catName)
Finds the registered integer index of the specified category. if not registered, returns -1;
Definition: ConditionalDebugCategoryRegistrar.cs:270
delegate float ExposeMemberHeightDelegate(ExposedMember field)
Defines the signature of a function used to determine the height of a control that is NOT using the a...
bool DetectChanges()
One of the primary functions for this class, it will check attributes to see if their value has chang...
Definition: DeltaMonitor.cs:262
bool Equals(object objectToCompare)
Generalized version of equality function. Determines if the object to compare is a Transform or IStor...
virtual Bounds bounds
Returns the bounds of the specified collider, and if boundsIncludesDecendants is true,...
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:47
static int CategoryID
static member stores the category ID for DeltaDetector.
Definition: DeltaDetectorDebug.cs:16
static byte[] Zip(Stream msi)
Takes the data provided by the supplied stream, and zips it into a byte array, which is returned.
Definition: Zipper.cs:78
static GetEditorSelectedObjectDelegate editorSelectedObjectFunction
the Delegate member is assigned by Editor-only code, when running in the editor.
Definition: PerCameraMeshAndMaterials.cs:205
override void Save()
saves each member of the DebugCategorySettings to a persistent PlayerPrefOption
Definition: ConditionalDebugCategoryRegistrar.cs:76
static string debugCategoryEnabledPreferencesKeyBase
Though not implemented in this class, this static string defines the base key in EditorPrefs....
Definition: CatDebug.cs:477
static bool disableGUIForReadOnlyAccessors
When true (default), exposed read-only accessors and fields will have GUI.enabled set to false,...
Definition: MemberExposerFunctions.cs:52
override void RebuildPropertyBlock(int materialIndex)
Clears the materials property block for the indexed material, on the accessorReferenceCamera.
Definition: PerCameraMeshAndMaterials.cs:692
void CopyTo(Array array, int index)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:284
virtual GUIContent ValueLabel()
label to be used for value sections. Users may override this function to change the label.
Definition: SerializableDictionaryPropertyDrawerBase.cs:298
static bool IsListNotEmpty< T >(this List< T > list)
Given the specified list this function will check to see if it exists, and if so, if it has any entri...
Definition: CollectionExtensions.cs:22
static bool addCategoryNameToLogSingleLine
the option controls whether or not categories names will be prepended to log displays.
Definition: CatDebug.cs:462
static Type GetSystemType(this MemberInfo memberInfo)
An Extension Method for the MemberInfo class. It provides specific types of MemberInfo instances,...
Definition: MemberInfoExtension.cs:130
static Vector3 NomralizePrecise(this Vector3 v)
The standard unity function does not properly normalize small vectors, this function does.
Definition: Mathg.cs:71
StoredFullTransform(StoredTransform transform_to_copy)
This constructor allows one to convert a StoredTransform struct into a StoredFullTransform struct....
Definition: StoredFullTransform.cs:114
static void RegisterClassWithXMLTooltipFile(System.Type typeToRegister, string filePath)
Classes found in DLL's will automatically look for the appropriate XML files. Use this function when ...
Definition: EmbededXMLTooltip.cs:296
virtual IEnumerator< Node > GetEnumerator()
Default GetEnumbertor function. Iterates through all children of a node
Definition: SerializableTreeBase.cs:669
override void DrawElementProperty(Rect r, SerializedProperty property, int index)
Actual drawing code for an element of the list. The property parameter will provide the data to be dr...
Definition: LimitedListProperty.cs:992
static void InverseScale(this Vector3 vec, Vector3 scale)
Inverse-Scales this Vector3, by another Vector3 and stores the result in this Vector3....
Definition: Vector3Extensions.cs:90
override void Start()
Stores initial values for changeMonitor on Start. Also invokes DetectChanges() once,...
Definition: AirCraft.cs:100
static EditorPrefOption< int > previewAntiAliasingLevel
the level of anti-aliasing that will be used when drawing previews.
Definition: PreviewPrefs.cs:113
bool ConditionalDisplay()
Determines if the control should be displayed, based upon group foldout and the conditional states,...
Definition: ExposedMember.cs:414
int GetInt(string key)
Returns the value corresponding to key in the preference file if it exists.
Definition: XmlPreferenceInterface.cs:213
ShowAxisOptions
Three options to define ways to draw, or not draw the axis in the preview.
Definition: PreviewPrefs.cs:43
static EditorPrefOption< Color > previewColor
Color that Preview objects will be drawn with.
Definition: PreviewPrefs.cs:69
void AssignToTransform(Transform transformToAssignTo, bool localNotWorld=true)
Use to assign the values stored in the StoredTransform to an actual UnityEngine.Transform
Definition: StoredTransform.cs:271
int ReadFromStream(System.IO.BinaryReader readStream)
Implementation of IStreamable. Should read the data contained in the provided BinaryReader into the i...
void SetFloat(string key, float value)
Sets the value of the preference identified by key to the provided value.
Definition: XmlPreferenceInterface.cs:258
override string ToString()
general ToString override- useful for debugging
Definition: SerializableTreeBase.cs:999
This namespace holds classes that extended or inherit from various Unity defined classes....
Definition: EmbededXMLTooltip.cs:5
Node root
the root of the runtime tree. not serialized.
Definition: SerializableTreeBase.cs:720
bool Equals(StoredFullTransform fullTransform, bool localNotWorld=true)
Specific version of equality function used to compare with a Transform object. It allows the caller t...
Definition: StoredTransform.cs:442
static void SetBool(UniqueStringID key, bool value)
This function will set the boolean value paired with the provided key, to the provided value....
Definition: PerObjectNameBooleans.cs:198
Definition: GraphicsInterfacesModuleMainPage.cs:1
static void PrependToNextLog(int category, params object[] messageObjects)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:573
static byte[] ExtractFileToByteArray(Assembly dllAssembly, string filename, string dllNamespace, bool logToConsole=false)
Extracts the file from the dll specified, and returns the data found inside as a byte array
Definition: ExtractEmbededFiles.cs:344
MaterialConfig(Material mat)
Construction that creates a new MaterialBlck and populates the material member with the provided mate...
Definition: MaterialConfig.cs:29
void SetPropertyBlock(MaterialPropertyBlock dest, int matIndex)
Matches the form of the unity Renderer function of the same name, but has an additional parameter to ...
IEnumerable< Node > NodeAndAllDecendants()
Provides and IEnumerable<Node> that will iterate though a node, and all its descendants.
Definition: SerializableTreeBase.cs:620
void RepaintNow()
Call this function to force the preview to be repainted.
Definition: EditorWithPreview.cs:380
static Bounds FromGlobalTo(this Bounds boundsToTransform, Transform toThisTransform)
Transforms a global bounds into a local bounds, relative to the provided transform.
Definition: IGraphicsBounds.cs:71
static Vector3 TransformBoxVolumeToSphericalVolume(Vector3 point, float cubeSize, float volumeRadius)
Converts a point from a position in a cube, to a similar position in a sphere. The direction of the p...
Definition: VolumeTransforms.cs:24
static bool AreArraysIdentical< T >(T[] firstArray, T[] otherArray, System.Comparison< T > compareFunction)
Compares all elements in one array with all the elements in the other array, using the compare functi...
Definition: CollectionExtensions.cs:71
bool isAnAccessor
When true the exposed property is an accessor, when false, exposed property is a variable/field.
Definition: ExposedMember.cs:57
override void SetToDefault()
Sets the default value of the preference items to DebugCategorySettings.Default
Definition: ConditionalDebugCategoryRegistrar.cs:106
override void Load()
loads each member of the DebugCategorySettings from a persistent PlayerPrefOption
Definition: ConditionalDebugCategoryRegistrar.cs:87
virtual void ValidateViewableState()
Invoked OnEnable to ensure that all descendants of this object in the hierarchy (that implement IGrap...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:386
static EditorPrefOption< bool > LimitedListPropertyDrawerSetFoldoutBackgroundColorDarken
Specifies if the background of a foldout area should be darkened
Definition: EditorToolsOptions.cs:91
GameObject levelObject
Object in the scene that represents this MenuInfo
Definition: MenuTree.cs:22
override string ToString()
display the makeup of this MenuInfo as a string. Useful for debugging.
Definition: MenuTree.cs:32
virtual int Count
Number of elements in the circular array
Definition: CircularArray.cs:26
List< ProgressThreadParam > threadParamList
Stores a list of ProgressThreadParam, that are ALL used when executing members of this class.
Definition: ProgressThreadParam.cs:64
virtual void Update()
If IsCallbackNeeded returns true, will call InvokeCallbackForAllRegisteredObjects.
Definition: CallbackCamera.cs:236
This attribute can be applied to static void parameterless functions. This will cause those functio...
Definition: InitializeOnEditorReloadedAttribute.cs:15
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Function invoked by unity editor to display the SerializedProperty.
Definition: ExpandableObjectPropertyDrawer.cs:100
static bool drawDefaultPropertyOverrideBaseClass
When set to true, the default property drawer will be drawn. This variable is static,...
Definition: ExpandableObjectPropertyDrawer.cs:35
virtual bool showMaterialSection
Override this member to return false if you don't want the section visible in the editor inspector.
Definition: CustomRendererEditor.cs:33
static bool zipperWindowOpensFileSystemWindowToFolderAfterCompression
static value assigned by preference option. When a file is compressed using the file->eye->gzip menu ...
Definition: ZipperMenu.cs:17
new IEnumerator< StoredTransform > GetEnumerator()
Default GetEnumerator
Definition: TransformDictionaryStorage.cs:153
LocalTransformDictionayStorage()
Default constructor. Invokes base constructor and thats it.
Definition: LocalTransformDictionayStorage.cs:18
override void SetAndStorePropertyExpanded(SerializedProperty listProperty, bool expanded)
Used to set the expanded state of the specified property, and record it in storage.
Definition: LimitedListProperty.cs:953
void GetAllDecendantsList(IList< Node > genericListInterface, bool groupByLevel=true)
This function will Add, to the provided genericListInterface, all the descendants of this node....
Definition: SerializableTreeBase.cs:184
AllDecendantsEnumerator(Node node)
Definition: SerializableTreeBase.cs:406
void AppendToNextLog(string message)
This function will store the provided text, and associate it with the provided category....
Definition: CatDebug.cs:363
static void SetValueViaPath(this object rootObject, string path, object ValueToAssign)
Given a Unity SerialiazatbleProperty path, and an object reference, set the value in the object's fie...
Definition: SerializedPropertyExtensions.cs:56
static PropertyStats GetStatsOfProperty(SerializedProperty property, PropertyDrawer drawerInstance=null, GUIContent label=null)
This function is used to Generate a PertyStats instance, for the provided
Definition: PropertyStats.cs:76
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Used to get the height of the dictionary, when drawn.
Definition: SerializableDictionaryPropertyDrawerBase.cs:156
This class initializes and stores PlayerPrefs, which are persistent between sessions,...
Definition: CatDebugOptions.cs:9
static PlayerPrefOption< bool > logToFileIncludeStackStrace
When true, logging to file when Unity logging is disabled, a stack trace will be generated,...
Definition: CatDebugOptions.cs:30
string GetString(string key)
Returns the value corresponding to key in the preference file if it exists.
Definition: XmlPreferenceInterface.cs:225
static EditorPrefOption< Color > LimitedListPropertyDrawerFoldoutTopLevelBackgroundColor
Specifies the color that will be used to as the background in LimitedListPropertyDrawer foldout areas...
Definition: EditorToolsOptions.cs:96
static Vector3 TransformVectorRelativeToAncestor(this Transform transform, Transform ancenstorTransform, Vector3 point)
utility function that applies only the transforms relative to an parent or earlier ancestor to the pr...
Definition: TransformExtensions.cs:213
static bool operator==(UniqueStringID x, UniqueStringID y)
Checks if the two provided UniqueStringID objects have the same stats. Returns true if so,...
Definition: UniqueIDString.cs:144
void Log(string categoryName, params object[] message)
This function takes a set of strings as parameters and uses the first one as the category,...
Definition: CatDebug.cs:283
static ExposedMember[] GetAllExposedPropertiesInObject(System.Object obj, string prependPath=null)
Uses reflection to find all the [ExposeProperty] attributes assigned to the specified object....
Definition: MemberExposerFunctions.cs:1506
virtual void OnEnable()
Initializes cashed renderer and textMesh references, in not already assigned.
Definition: TextMeshToViewableColorInterfaceAdapter.cs:137
static EditorAddComponentWithUndo EditorAddComponent
This delegate is assigned by editor class GameObjectExtensionEditorComponent, when the editor is init...
Definition: GameObjectExtensions.cs:103
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:435
int ComparePriority
this accessor is be a NAMED PARAMETER for this attribute. It is used for optimization,...
Definition: DeltaAttribute.cs:174
static void SwapValues(ref Vector2 num1, ref Vector2 num2)
Swaps the value in two referenced Vector2's.
Definition: Mathg.cs:132
delegate void IntervalCallback()
Defines the signature of the callback function: no parameters, no return value. (Just do it....
This EditorOnly Class contains the function used to initializes the EditModeIntervalCallbacks,...
Definition: EditModeIntervalEditorComponent.cs:15
static bool operator==(StoredTransform lhs, StoredTransform rhs)
This function will check for equality between two StoredTransforms
Definition: StoredTransform.cs:466
Class that creates/updates and stores a separate mesh for rendering to each camera....
Definition: PerCameraMeshAndMaterials.cs:19
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:411
Abstract base class from which all Unity renderer to GraphicsInterface adapters are descended....
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:15
override MemberInfo Info
MemberInfo of the collection. MemberInfo does not reference elementOf collections.
Definition: ExposedMember.cs:700
A Serializable class that is NOT a ScriptableObject. Instances of this class will not be assets,...
Definition: Weapon.cs:14
string[] selectedOptionNames
Subset of fullList. Contains all the names that are "selected". Should only contain names that are in...
Definition: OptionNames.cs:22
We don't NEED to declare a custom property drawer for WeaponType objects: We already have a DefaultEx...
Definition: AmmoTypePropertyDrawer.cs:17
bool hasACustomPropertyDrawerDerivedFromExpandableObjectPropertyDrawer
True if the custom property drawer defined for this class is derived from the ExpandablePropertyDrawe...
Definition: PropertyStats.cs:51
static Vector2 GetVector2(this IStorePreferences interfaceReference, string key)
Gets the Vector2 value associated with this key, from prefBase. Behind the scenes,...
Definition: MultiKeyPrefHelper.cs:111
abstract override string GetInfoString()
This function returns the string that will be displayed as the title of the preview pane in the edito...
static int SmallestCoordinate(this Vector3 vec)
Returns an index to the smallest Coordinate in the vector. The sign of the values are not considered ...
Definition: Vector3Extensions.cs:153
override Texture mainTexture
Since sprite textures are not changeable, assigning a new/different texture to this accessor will cre...
Definition: SpriteRendererToGraphicsInterfaceAdapter.cs:62
bool success
only valid when isProcessing is false, and the thread had been started. Written to by the running thr...
Definition: ProgressThreadParam.cs:37
Definition: LocalTransformDictionaryPropertyDrawer.cs:8
string alternateLabelConditionalName
Used to optionally reference a boolean member of the object. This bool will determine weather the mai...
Definition: ExposeMemberAttribute.cs:109
static void DrawPrefControl(this IAccessPreferences< Vector2 > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:86
object monitoredInstance
Reference to the object that contains the variables we want to detect changes of.
Definition: DeltaAttribute.cs:46
static Attribute GetAttributeOfType(this MemberInfo memberInfo, Type attributeType)
Determines if the specified attribute type is assigned to the provided memberInfo
Definition: MemberInfoExtension.cs:176
static object InstantiateSystemObjectOfType(System.Type typeToInstantiate)
Creates a default/empty instance of an object of the provided type. Type must have a default construc...
Definition: ReflectionExtensions.cs:191
virtual bool textureInterfaceEnabled
Used to enable/disable use of the texture provided. Changing this value will force a rebuild of the p...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:308
Class used to store the values of any provided transform, and all it's children. While the hierarchy ...
Definition: TransformAndDecendantStorage.cs:118
static void DrawRect(Rect r, Vector3 pos, Quaternion orient, Color c)
Draws the provided rect
Definition: GizmoExtensions.cs:93
ExposeMemberAttribute(string tooltip="", [CallerLineNumber]int order=0)
Default constructor that assigns the provided tool-tip to the ExosedProperty.
Definition: ExposeMemberAttribute.cs:151
CatDebugInstance()
Default constructor, blank string is assigned to instance name.
Definition: CatDebug.cs:43
static void UnityZipFileWindow()
Opens a Unity File selection Window, for the user. When a file is selected an Open is pressed,...
Definition: ZipperMenu.cs:25
ICollection< TKeyType > Keys
returns the all the Keys in the dictionary as a Collection
Definition: SerializableDictionary.cs:88
RenderTexture previewImage
A reference to the render texture that is displayed in the preview pane. This image is updated dynami...
Definition: EditorWithPreview.cs:28
override void OnBeforeSerialize()
Stores the monitored object reference in he Serializable monitoredObject field, then calls the base c...
Definition: DeltaMonitorUnityObject.cs:57
static float ExposedMembersSection(ref ExposedObjectMembers exposedObjProperties, bool notHeightOnly, Rect position, SerializedProperty property, GUIContent label)
Compute the height of, and optionally draws, the foldout-section of the ExposedObjectPropertyDrawer.
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:126
static void SetBool(this IStorePreferences interfaceReference, string key, bool value)
Sets the bool value associated with this key, in prefBase, to the provided bool value....
Definition: MultiKeyPrefHelper.cs:255
This class wraps the Unity.EditorPrefs class in the IStorePreferences interface so that it be accesse...
Definition: EditorPrefInterface.cs:18
string CheckMember
CheckMember is a NAMED PARAMETER for this attribute. It is used when the user wants to access a singl...
Definition: DeltaAttribute.cs:165
bool isExpanded
specifies weather or not the exposed property can be expanded to show details.
Definition: ExposedMember.cs:216
override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Performs the actual drawing of the StoredTransform components, and possibly, it's label.
Definition: TransformStoragePropertyDrawer.cs:19
UnityEngine.Object MonitoredObject
This Object reference can be serialized by unity since it is a UnintyEngine.Object....
Definition: DeltaMonitorUnityObject.cs:36
Definition: CircularArray.cs:5
static void SetCashedIconForGUID(string guid, Texture2D iconToCache)
Assigns or overwrites the cashed texture for the provided GUID, with a duplicate of the provided text...
Definition: ProjectViewIcons.cs:113
CircularArray(int size)
All CircularArrays must be at least 1 element in size, or an exception is thrown.
Definition: CircularArray.cs:60
static void WriteFileForCurrentSceneHashCodeDictionary()
Stores the boolean data for all elements in the dictionary, in a file in the current directory (proje...
Definition: PerObjectNameBooleans.cs:422
static void LayoutSeperator(string titleText)
Draws a horizontal Separator using AutoLayout
Definition: EditorUtil.cs:71
static bool GetBool(this IStorePreferences interfaceReference, string key)
Gets the bool value associated with this key, from prefBase. Behind the scenes, the values are stored...
Definition: MultiKeyPrefHelper.cs:238
static ExposeDelegatesForType GetDelegatesForType(System.Type typeDelegatesExpose, bool includeBaseClasses=false)
Gets the registered exposer delegate for the specified type. If no delegate is found,...
Definition: MemberExposerFunctions.cs:165
UniqueStringID(string s)
Default constructor for a given string. Will generate UniqueStringID stats for this string,...
Definition: UniqueIDString.cs:29
static void SetupTransformStorageCatDebug()
This function is assigned the RuntimeInitializeOnLoadMethod attribute, ensuring that it will register...
Definition: TransformStorageCatDebugSetup.cs:26
void SetGroupFoldoutState(bool value)
If the group that this ExposedProperty is a member of, has a foldout/fold-up option,...
Definition: ExposedMember.cs:387
void RebuildPropertyBlock(int matIndex)
This function will be invoked wen the property block needs to be rebuilt. For example,...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:353
static void RecordGUIState(Rect position=new Rect())
Records the current GUI state. After this is called, the user may then make any changes to the GUI st...
Definition: EditorUtil.cs:407
static StoredFullTransform[] Cast(StoredTransform[] transformArray_to_copy)
Convenience function used to convert an array of StoredTransform structs into FullransformStorage str...
Definition: StoredFullTransform.cs:125
UpdateOption meshRecomputeOption
Specifies when the mesh should be recomputed for each/all cameras. This will invoke the abstract (def...
Definition: PerCameraMeshAndMaterials.cs:52
static void DestroyObjectAppropriately(this Object objectToDestroy)
Use to destroy objects properly whether in the editor or not. Will not destroy a saved asset.
Definition: GameObjectExtensions.cs:56
abstract void DoGLrendering(Camera cam)
This function is called immediately after the camera is rendered. Put stuff drawn in OnRenderObject i...
Vector3 localPosition
Accessor to read and write the position value stored in the local StoredTransform member.
Definition: StoredFullTransform.cs:34
void SetAssetPath(string key, Object value)
Sets the asset reference associated with this key, to the provided bool value. Behind the scenes,...
Definition: EditorPrefInterface.cs:135
void SetPropertyBlock(MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name. Caches and assigns the provided Mat...
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:157
override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
Overrides the Unity Editor class function of the same name to provide static Previews of objects....
Definition: EditorWithPreview.cs:609
static void ExposeAllPropertiesLayout(ExposedObjectMembers exposedObjectMembers, object undoObject=null)
Used to draw all the exposed properties in the list, using unity's auto-layout. The list is actually ...
Definition: MemberExposerFunctions.cs:966
override Material[] sharedMaterials
gets the materials for this object, that is associated with the current accessorReferenceCamera.
Definition: PerCameraMeshAndMaterials.cs:480
Transform rootWorldTransformReference
In addition to the local transform references stored in the localTransforms dictionary,...
Definition: TransformDictionaryStorage.cs:26
int Count
returns the number of Keys in the dictionary
Definition: SerializableDictionary.cs:105
static EditorPrefOption< Color > axisColor
Color used to draw the axis in previews
Definition: PreviewPrefs.cs:94
EditorPrefOption(ValueType _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: EditorPrefOption.cs:26
Vector3 localPosition
stores transform position information
Definition: StoredTransform.cs:27
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Used to get the height of the tree, when drawn.
Definition: SerializedTreePropertyDrawerBase.cs:409
override void DeltaDetected()
Override abstract base version to invoke the deltaDetectedCallBack UnityEvent.
Definition: MonoDeltaDetectorCallback.cs:27
IEnumerable< Node > Children()
Provides and IEnumerable<Node> that will iterate though the children of the node.
Definition: SerializableTreeBase.cs:639
static bool HasDelegatesRegistered(System.Type typeDelegatesExpose, bool includeBaseClasses=false)
public function that allows user to check if a Type already has Expose delegates registered.
Definition: MemberExposerFunctions.cs:146
virtual void Update()
This standard function simply calls UpdateMaterialPropertyBlock. If in unity editor it is registered ...
Definition: PerCameraMeshAndMaterials.cs:423
Object GetAssetAtPath(string key)
Loads the resource at the path specified in the value associated with this key, from prefBase.
Definition: XmlPreferenceInterface.cs:293
static void GetAllRegisteredCategoryNames(ref System.Collections.Generic.List< string > outputList)
Generates a list of all the Registered category names, and puts them into the string List reference p...
Definition: ConditionalDebugCategoryRegistrar.cs:365
NodeAndChildrenEnumerator(Node node)
Definition: SerializableTreeBase.cs:508
static void RegisterFileForExtraction(List< ExtractEmbededFiles.ExtractionInfo > filesToExtract)
Checks to see if all of the files provided in the parameters are in place, if so, returns....
Definition: ExtractEmbededFilesInEditor.cs:50
void AssignToTransform(Transform transformToAssignTo, bool localNotWorld=true)
Use to assign the values stored in this StoredTransform to an actual UnityEngine.Transform
Definition: StoredFullTransform.cs:140
ICollection< TValueType > Values
returns the all Values in the dictionary as a Collection
Definition: SerializableDictionary.cs:95
static IEnumerable< Transform > AllDecendants(this Transform transform, bool groupByLevel=true)
Extension provided to enable for-each through all descendants, rather than just children.
Definition: TransformExtensions.cs:401
DamageType
Enum used in WeaponType to show how they are exposed
Definition: WeaponType.cs:12
This namespace includes all modules produces by EyEengines.
Definition: NameSpaceAndEyeMainPage.cs:4
void SetString(string key, string value)
Sets the value of the preference identified by key to the provided value.
int displayOrderInGroup
Used to define a specific order within the ExposedProperties group (including "no group")
Definition: ExposeMemberAttribute.cs:105
static Vector3 TransformPointRelativeToAncestor(this Transform transform, Transform ancenstorTransform, Vector3 point)
utility function that applies only the transforms relative to an parent or earlier ancestor to the pr...
Definition: TransformExtensions.cs:185
string ExposedCollectionMemberElementToString()
Similar to the base class version, but this override appends [ index ] to the end of the elementOf's ...
Definition: ExposedMember.cs:653
DeltaAttribute GetDeltaAtrributeByAttributeName(string attributeConditionalName)
Attempts to get the detltaAttribute in the same class as the called DeltaMonitor, using the name defi...
Definition: DeltaMonitor.cs:211
void PrependToNextLog(string message)
This function will store the provided text, and prepend it to the text of the next call to a Log func...
Definition: CatDebug.cs:297
static EditorPrefOption< string > previewShaderName
Name of the shader to be used when drawing previews.
Definition: PreviewPrefs.cs:108
static DebugCategorySettings Default
The default Settings, not registered
Definition: ConditionalDebugCategoryRegistrar.cs:39
string assetPath
Path, within the Asset Folder(do NOT include initial slash, nor "assets", but do include ending slash...
Definition: ExtractEmbededFiles.cs:38
float Range
Range is only applicable if the StoreAsType can add and subtract floating point numbers....
Definition: DeltaAttribute.cs:156
virtual System.Type ObjectCallbackCameraTypeToRegister()
Specifies the type of ObjectCallbackCamera class that will be added to a camera during RegisterCamera...
Definition: PerCameraMeshAndMaterials.cs:296
override void InternalDrawLimitedListProperty(Rect position, ExposedMember property, GUIContent label=null)
Implements the abstract function defined in LimitedListDrawer. function will invoke the base class ve...
Definition: LimitedListMember.cs:32
static int RegisterCategory(string catName)
Function takes a name and returns an id. if the name has been registered previously,...
Definition: ConditionalDebugCategoryRegistrar.cs:213
bool Remove(T item)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:225
bool Equals(Transform transformToCheck, bool localNotWorld)
Use to compare with an existing transform. Compare values in the transform and all children to see if...
Definition: TransformAndDecendantStorage.cs:185
static bool GetCategoryLogToFileOnDiabledState(int catID)
Finds the enabled/disabled state of the specified category. if not registered, returns false.
Definition: ConditionalDebugCategoryRegistrar.cs:307
void ResetFromMaterialArray(Material[] startingMaterials)
Initializes this MeshAndMaterialBlock's materialsBlock, based upon the provided materials....
Definition: MeshAndMaterialConfigSet.cs:35
void AppendToNextLog(int category, string message)
This function will store the provided text, and append it to the text of the next call to a Log funct...
Definition: CatDebug.cs:383
SerializableTreeBase()
Constructor. Creates a new instance with the root Node set to null.
Definition: SerializableTreeBase.cs:735
void Init(object _objectToMonitor)
Given the objectToMonitor, which will be stored internally(but not serialized), Init() generates a li...
Definition: DeltaMonitor.cs:119
void Log(int category, params object[] message)
This function will take an array of strings, and if the specified category is enabled,...
Definition: CatDebug.cs:253
static float ExposeAllPropertiesHeight(ExposedObjectMembers exposedObjectMembers)
Used to compute the height of a set of grouped exposed properties
Definition: MemberExposerFunctions.cs:1210
void resetChangeValue()
This is one of the two primary functions for this class. Stores the current value of the variable thi...
Definition: DeltaAttribute.cs:312
void SetAssetPath(string key, string path)
PlayerPrefs cannot determine the path of an object. Uses SetString, with the same key,...
Definition: PlayerPrefInterface.cs:134
DeltaAttribute(string _conditonalOptionName)
default constructor, mandatory parameter takes a string that can be used to display an option to enab...
Definition: DeltaAttribute.cs:195
static Vector2 ClipToRect(this Rect rectToClipTo, Vector2 pointToClip)
Clips a Vector2 point to the boundaries of the provided Rect. If any of the points coordinates lies o...
Definition: Vector3Extensions.cs:261
StoredTransform[] localTransforms
the localTransforms array stores the local transform information for the root object,...
Definition: TransformAndDecendantStorage.cs:129
static byte CategoryID
Static member stores the category ID for this category. This is the member accessed when called CatDe...
Definition: AssetPreviewCatDebugSetup.cs:18
NodeEnumerator(Node node)
Definition: SerializableTreeBase.cs:378
Definition: RankEditor.cs:6
void ClearPrependText(int category)
Clears the prepend text for the provided category, if any exists.
Definition: CatDebug.cs:329
override void Reset()
Instantiates the changeMonitor class.
Definition: AirCraft.cs:94
override void SetPropertyExpanded(ExposedMember listProperty, bool expanded)
Used to set the expanded state of the specified property.
Definition: LimitedListMember.cs:133
static void ClearAllPositionAndDrawnElementsFiles()
Deletes all files in the current directory that end with fileNameConst. This will remove all saved fo...
Definition: LimitedListProperty.cs:740
static bool haveBeenChanged
This flag is monitors to detect a change in the preferences, which will force any Previews to be redr...
Definition: PreviewPrefs.cs:37
static Rect Encapsulating(this Rect rect, Vector2 point)
Simple function to expand a rect, if necessary, such that it includes the specified point....
Definition: RectExtensions.cs:22
Editor Adapter component for GameObjectExtensions. It allows GameObjectExtensions to potentially call...
Definition: GameObjectExtensionEditorComponent.cs:18
void SetString(string key, string value)
Sets the value of the preference identified by key to the provided value in PlayerPrefs.
Definition: PlayerPrefInterface.cs:90
static void ExtractPreviewShader()
This function is assigned the InitializeOnLoadMethod attribute and is specifically for PreviewCompone...
Definition: ShaderExtractor.cs:28
A NodeEnumberator that iterates though all the leaves (childless-descendants) of a node,...
Definition: SerializableTreeBase.cs:548
static bool TryGetBool(UniqueStringID key, ref bool boolState)
Get the state of the bool, and creates it if the key dos not exist yet. the value of the bool is put ...
Definition: PerObjectNameBooleans.cs:163
override bool DrawDefaultPropertyOverride
override this get accessor to return true, if you would like to draw the default unity property for t...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:31
This class exists to provide PerCameraMeshAndMaterials with a way to detected the active game object,...
Definition: PerCameraMeshAndMaterialsEditorComponent.cs:13
Class Used to run upon load. Currently only checks to see if component icons exist,...
Definition: GraphicInterfacesEdiorComponent.cs:16
static byte[] UnzipBytes(byte[] bytes)
Takes the provided bytes and assumes they makeup a gzipped string. It attempt to decompress the strin...
Definition: Zipper.cs:118
static int ReadFromStream(this IStreamable streamableObject, System.IO.Stream readStream)
IStreamable extension function that reads the streamableObject from the specified stream....
Definition: StreamableInterface.cs:104
DebugCategorySettingsPlayerPref(DebugCategorySettings _defaultValue, int category, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=false)
Class constructor calls the base version constructor in PlayerPrefOption, and assigned the specified ...
Definition: ConditionalDebugCategoryRegistrar.cs:67
static bool saveNewCallbackCameraComponentsInScene
When false, as it is by default, the Callback Camera components added to camera objects during regist...
Definition: CallbackCamera.cs:59
ExposedMember elementOf
Specifies the ExposedMember that this ExposedCollectionMemberElement is an element of....
Definition: ExposedMember.cs:593
Simple class with static Zip and Unzip functions. Implements System.IO.Compression....
Definition: ZipperMenu.cs:12
An example ScriptableObject derived class, contains multiple members of various types that are expose...
Definition: Soldier.cs:15
This class exists to create a unique type that can be used to identify ExposedMembers with the Potent...
Definition: MemberExposerFunctions.cs:36
static void DrawPrefControl(this IAccessPreferences< bool > prefOption)
Definition: PrefOptionBaseEditorDrawingExtensions.cs:53
Material[] ToMaterialArray()
Extracts the Materials only from this materialBlock array member, and returns them as a new array
Definition: MeshAndMaterialConfigSet.cs:43
static Gradient Copy(Gradient toCopy)
Creates a new Gradient Object, then duplicates the values from the provided gradient into it....
Definition: GradientStorage.cs:129
bool IsSynchronized
ICollection interface function. Returns isSyncronized state of the internal array
Definition: CircularArray.cs:41
Contains functions that operate on a System.Type, or, on a given object's Systsme....
Definition: TypeExtension.cs:16
override void OnEnable()
Initializes serializedProperties
Definition: StaticMeshPerCameraByListEditor.cs:23
static bool recordUndoOnChange
Undo recording override control. Set to false to prohibit recording of undo.
Definition: MemberExposerFunctions.cs:48
virtual bool colorInterfaceEnabled
This overridable accessor simply get/sets the stored enabled/disabled state of the color adapter....
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:87
override int ArraySize(ExposedMember listProperty)
Extracts and returns the size of the array provided
Definition: LimitedListMember.cs:67
static void DrawLimitedListProperty(Rect position, SerializedProperty property, GUIContent label=null, PropertyDrawer useThisDrawer=null)
Draws a LimiedList using the specified property, at the specified location. Providing a Label and use...
Definition: LimitedListProperty.cs:1009
abstract T GetArrayElementAtIndex(T listProperty, int index)
Used to get the array elements from the list. Which element is returned is defined by the integer par...
Concrete Variant of the PlayerPrefOption template class used to store DebugCategorySettings objects....
Definition: ConditionalDebugCategoryRegistrar.cs:58
override float GetPropertyHeight(SerializedProperty property)
Computes and returns the height of the specified property.
Definition: LimitedListProperty.cs:979
static EditorPrefOption< bool > SerializedDictionaryPropertyDrawerDrawKeyValueHorizontaly
Specifies if LimitedListPropertyDrawers will draw key and value next to each other horizontally.
Definition: EditorToolsOptions.cs:123
Definition: CategoricalDebugOptionsGUI.cs:13
static System.Reflection.FieldInfo GetFieldViaPath(this System.Type type, string path)
Given a Unity SerialiazatbleProperty path, get the field it points to.
Definition: SerializedPropertyExtensions.cs:26
static List< Type > GetAllDerivedClasses(this Type baseClass)
Given a base type, find all classes, in all loaded assemblies, that are descendants of it.
Definition: ReflectionExtensions.cs:46
override string ToString()
Converts the local and world transforms to strings.
Definition: StoredFullTransform.cs:269
static int DetailedCategoryID
static member stores the detailed logging category ID for DeltaDetector.
Definition: DeltaDetectorDebug.cs:20
virtual bool showDefaultMaterials
specifies weather or not this section show be displayed
Definition: PerCameraMeshAndMaterialsEditor.cs:36
This class stored options that re used when generating Preview Preferences. It also provides a GUI dr...
Definition: PreviewPrefs.cs:17
static float removalTimeDelay
This timer specifies how long since last access, before the entry is removed.
Definition: PerObjectNameBooleans.cs:130
Interface used to stores a set of unity Transforms, and make them enumerable. Classes that implement ...
Definition: IStoreTransformHierarchy.cs:12
void Clear()
Removes all keys and values from the dictionary.
Definition: SerializableDictionary.cs:230
static void Clear()
clears the entire cache
Definition: ProjectViewIcons.cs:86
bool displayWarningWhenNull
This option is appropriate only for reference types, not structs or value-types. Setting this option ...
Definition: ExposeMemberAttribute.cs:124
This class extracts and cashes various properties of a given SerializedProperty along with how large ...
Definition: PropertyStats.cs:18
virtual object Instance
read-only reference to the Object that contains this exposed property.
Definition: ExposedMember.cs:34
This class contains a variety of functions. Some are used to make accessing SerializedObjects a littl...
Definition: EditorUtil.cs:23
static int PerObjectBooleansDebugDetailsID
Static member stores the category index for this category. Default value is 1, but will be set to the...
Definition: UnityToolsCatDebug.cs:55
int Add(object value)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:235
static string defaultColorString
The default main color string- hard coded initialization.
Definition: IGraphicsMaterialPropertyBlockInterface.cs:99
This class is useful when one wants to provide custom drawing functions, but still want all the input...
Definition: CustomRenderer.cs:18
void GetPropertyBlock(out MaterialPropertyBlock dest, int matIndex)
Matches the form of the unity Renderer function of the same name, but has an additional parameter to ...
Allows each unique Unity.Object to store it's own key/boolean pair.
Definition: PerObjectNameBooleans.cs:21
static EditorPrefOption< bool > resetRotationOnSelectionChange
Determines if the current rotation will be used, or if rotation should be returned to the default val...
Definition: PreviewPrefs.cs:60
static EditorPrefOption< bool > DrawButtonAtBottomOfFoldout
Stores the editor preference that determines if a button will be drawn at the bottom of ExpandableObj...
Definition: EditorToolsOptions.cs:59
Used to Automatically draw a DeltaMonitorUnity variable as a MaskFied, allowing the user to select wh...
Definition: DeltaMonitorUnityDrawer.cs:22
abstract System.Type[] GetTypesOfRendererComponents()
The function will provide a list of all the components that a preview object will need in order to be...
override string ToString()
Output transform storage as single line string, useful for debugging.
Definition: StoredTransform.cs:336
This static class allows the programmer to specify a CategoryIndex, each time a Debug Log used is tak...
Definition: CatDebug.cs:447
void ForceMeshUpdateInAllCamerasNow()
Immediately calls UpdateMesh for all registered cameras. Not called internally.
Definition: PerCameraMeshAndMaterials.cs:354
void Add(T item)
Circular array is static, and does not support this function.
Definition: CircularArray.cs:187
static void LayoutSeperator(GUIContent titleText)
Draws a horizontal Separator using AutoLayout
Definition: EditorUtil.cs:85
static EditorPrefOption< int > FoldoutControlAreaWidth
Horizontal area used to draw a foldout arrow
Definition: EditorToolsOptions.cs:70
bool prependInstanceName
Controls weather or not the instanceName will be included Log messages, at the start of the message....
Definition: CatDebug.cs:63
static int defaultTextureID
Initialized at first use of MaterialPropertyBlockInterfaceExtensions, to store the textureID for "_Ma...
Definition: IGraphicsMaterialPropertyBlockInterface.cs:107
TransformDictionaryStorage stores a transform and it's children, and keeps a reference to the transfo...
Definition: TransformDictionaryStorage.cs:16
static Material[] ToMaterialArray(MaterialConfig[] materialsBlock)
Extracts the Materials only from the provided MaterialBlock array, and returns them as a new array
Definition: MaterialConfig.cs:55
System.Type customPropertyDrawerType
The type of custom property draw, if one exists, that is used to display the serializedProperty
Definition: PropertyStats.cs:67
All descendants of a node are enumerated, in generation order (all children, then all grand children,...
This version of the ExpandableObjectPropertyDrawer class simply uses the standard property iterator t...
Definition: DefaultExpandablePropertyDrawer.cs:17
override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Computes the height required to draw the property with the provided label.
Definition: TransformStoragePropertyDrawer.cs:57
Storable objects that combines a mesh and a list of materials and MaterialPropertyBlock blocks,...
Definition: MeshAndMaterialConfigSet.cs:12
static byte[] Zip(string str)
takes the contents of the provided string, and zips it into a byte array, which is returned.
Definition: Zipper.cs:52
bool isAPotentialWarningFlag
This option is only used when exposing booleans types. When this flag is used, rather than displaying...
Definition: ExposeMemberAttribute.cs:119
IEnumerator< KeyValuePair< TKeyType, TValueType > > GetEnumerator()
Used to get an IEnumerator{KeyValuePair{TKeyType, TValueType}} for use in iterating through the dicti...
Definition: SerializableDictionary.cs:269
override string ToString()
Output transform storage as single line string, useful for debugging.
Definition: TransformAndDecendantStorage.cs:275
void Log(string message)
This function will take an array of strings, and if a DEBUG build is running, it will concatenate tog...
Definition: CatDebug.cs:220
Similar in form to the EditorPrefOptionClass, this class is used to specify a preference that is to b...
Definition: EditorPrefOptionArray.cs:14
override UniqueStringID GenerateListScrollPositionAndDrawSizeKey(SerializedProperty property, string label)
Creates a new UniqueStringID from the provided property, and optionally, the provided label....
Definition: LimitedListProperty.cs:898
Example class that may be needed by the Squad class. Exposed members is the Squad class show how this...
Definition: SquadPCController.cs:11
void RebuildPropertyBlock(int matIndex)
This function will be invoked wen the property block needs to be rebuilt. For example,...
static Bounds RelativeTo(this IGraphicsBounds boundsToTransform, Transform localToThisTransform)
Converts a local bounds to one relative to the provided transform. Assumes that the bounds are a desc...
Definition: IGraphicsBounds.cs:36
This namespace includes all classes that are meant to provide tools for use with Unity.
Definition: NameSpaceAndEyeMainPage.cs:33
Example showing usage of DefaultExposedMemberEditor to display instances of the WeaponType class.
Definition: AmmoTypeEditor.cs:12
abstract bool GetPropertyExpanded(T property)
Used to lookup the last user-selected expanded state of the specified property.
void DeleteKey(string key)
Removes key and its corresponding value from EditorPrefs.
Definition: EditorPrefInterface.cs:42
Vector3 localScale
Accessor to read and write the scale value stored in the local StoredTransform member.
Definition: StoredFullTransform.cs:52
int GetSiblingIndex()
Determines the index number of this node, relative to it's siblings (nodes with the same parent).
Definition: SerializableTreeBase.cs:351
string text
Text to be displayed for this MenuInfo
Definition: MenuTree.cs:26
static PlayerPrefOption< bool > addCategoryNameToLogOption
Prepend Category Name to every log entry, for each category.
Definition: CatDebugOptions.cs:15
static bool AproxEquals(this float a, float b, int accuracy)
compares two floating point numbers to X decimals of accuracy, where X is specified by the accuracy p...
Definition: Mathg.cs:88
static System.Collections.Generic.List< string > GetAllRegisteredCategoryNames()
Creates and returns a new list containing all the Registered category names.
Definition: ConditionalDebugCategoryRegistrar.cs:384
virtual void OnEnable()
Initializes the exposedObjectProperties member, with the current target object.
Definition: DefaultExposedMemberEditor.cs:25
Gradient storedValue
Reference to the gradient that is stored by this object.
Definition: GradientStorage.cs:18
Definition: MeshEditorWithPreview.cs:11
List< SerializableTreeNode > serializedNodes
this List is serialized and stores the relationships between nodes, which defines the shape of the tr...
Definition: SerializableTreeBase.cs:726
static EditorPrefOption< bool > debugHideDiaramaObjects
By default, preview objects and cameras will be hidden from the scene hierarchy view....
Definition: PreviewPrefs.cs:98
A List of stored transforms, that can be compared for equality
Definition: TransformAndDecendantStorage.cs:12
bool Contains(T item)
Checks the array contents to see if the specified item is one of the elements it contains.
Definition: CircularArray.cs:205
static void ProjectItemOnGUI(string guid, Rect rect)
finds or generates icons for items, if they have a EditorWithPreview defined for the type of object.
Definition: EditorWithPreview.cs:644
The MenuTree property drawer does no more than inherit the property drawer of the base class (Seriali...
Definition: MenuTreeDrawer.cs:11
static byte categoryID
static member stores the category ID for this category.
Definition: TransformStorageCatDebugSetup.cs:16
Vector3 localScale
stores transform scale information
Definition: StoredTransform.cs:68
Provides a runtime System.Collections.Generic.Dictionary< Key,Value > Structure, that can be properly...
Definition: SerializableDictionary.cs:19
abstract void GenerateMeshForCamera(Camera cam, ref Mesh meshToFill)
This function generates the mesh that will be drawn for the provided camera. It is called by internal...
abstract void DrawElementProperty(Rect r, T property, int index)
Actual drawing code for an element of the list. The property parameter will provide the data to be dr...
This interface defines standard methods which custom classes can implement to provide a standard meth...
Definition: IGraphicsBounds.cs:12
abstract void SetupPreviewObject()
Performs the setup necessary for the PreviewObject to be drawn to the preview camera....
override string ToString()
Output transform storage as single line string, useful for debugging.
Definition: TransformDictionaryStorage.cs:168
override void SetPropertyExpanded(SerializedProperty listProperty, bool expanded)
Used to set the expanded state of the specified property.
Definition: LimitedListProperty.cs:942
override float GetFoldoutPropertyHeight(SerializedProperty property, GUIContent label)
Gets the full height of the control's foldout section, when the control is folded-out....
Definition: DefaultExpandablePropertyDrawer.cs:102
static EditorInstanceIDToObjectFunction EditorInstanceIDToObject
static instance of the EditorInstanceIDToObjectFunction delegate. It is assigned a value by EyE unity...
Definition: GameObjectExtensions.cs:141
static bool IsObjectAnAsset(Object testObject)
Functions inside of Editor only code, this function will return false when not running in the Editor....
Definition: GameObjectExtensions.cs:123
Example usage of DefaultExposedPropertyExpandablePropertyDrawer for drawing Rank references with deta...
Definition: RankPropertyDrawer.cs:14
static PlayerPrefOption< bool > alwaysShowWarningsOption
Always log warnings. When this option is disabled: logged warnings will only be shown if the logging ...
Definition: CatDebugOptions.cs:25
As a base class, this object provides a simple way to create a derived class, that can pass all the p...
Definition: ProgressThreadParam.cs:15
In this example class we have three variables that are used to compute the effective lift....
Definition: AirCraft.cs:70
bool ReorderChildIndex(int indexToMove, int newIndexToMoveTo)
Use this function to change the order children are indexed, and iterated through. Takes the index of ...
Definition: SerializableTreeBase.cs:334
Contains extension functions for SerializedProperty to allow direct access to their values via reflec...
Definition: SerializedPropertyExtensions.cs:15
LeavesOnlyEnumerator(Node node)
Definition: SerializableTreeBase.cs:554
virtual void Delete()
The Delete function does not destroy this runtime instance; it will set the runtime value member to i...
Definition: PrefOptionBase.cs:389
bool readOnly
Signals that the exposed member should NOT allow input. Default value is false.
Definition: ExposeMemberAttribute.cs:139
override bool Equals(Transform compareTransform, bool localNotWorld)
Use to compare with an existing transform. Compare values in the transform and all children to see if...
Definition: TransformChildrenDictionaryStorage.cs:40
Property drawer for the StoredTransform class. If null, or a GUILabel with blank text field,...
Definition: TransformStoragePropertyDrawer.cs:11
bool containerIsPersistent
Specified if the object containing the SerilaztedProperty is a saved Asset.
Definition: PropertyStats.cs:35
static IEnumerable< int > registeredIDs
returns an enumeration of all the currently registered category ID numbers
Definition: ConditionalDebugCategoryRegistrar.cs:166
override int GetHashCode()
return the hash code of the Gradient storedValue member
Definition: GradientStorage.cs:104
virtual ValueType Value
This Accessor's get function returns the current value of this preference. This current value is load...
Definition: PrefOptionBase.cs:140
static void DeleteAllSavedPreviewPrefs()
Deletes all the preferences stored for PreviewEditor module.
Definition: PreviewPrefs.cs:229
virtual void OnEnable()
When enabled will perform setup steps required to create the diorama, and prepares to render it.
Definition: EditorWithPreview.cs:59
CatDebugInstance(string instanceName)
Constructor assigns the provided string to instance name, and enables the prependInstanceName flag.
Definition: CatDebug.cs:47
virtual void SetPropertyBlock(MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name.
Definition: CustomRenderer.cs:304
void Add(ProgressThreadParam p)
Adds the provided ProgressThreadParam to the set.
Definition: ProgressThreadParam.cs:120
static void ExposeAllProperties(Rect drawRect, ExposedObjectMembers exposedObjectMembers, GUIStyle guiStyle, object undoObject=null)
Used to draw all the exposed properties in the list, starting at the drawRect location....
Definition: MemberExposerFunctions.cs:955
bool isProcessing
specifies if the thread has started/finished running.
Definition: ProgressThreadParam.cs:25
int GetIndexDifference(int earlierIndex, int laterIndex)
Definition: CircularArray.cs:108
static bool selectAssetAfterCreation
when true, assets are selected in the unity editor, after they are created.
Definition: ResourceSystem.cs:20
string filename
File used to store XmlPreferenceInterface via this instance of XmlPreferenceInterface
Definition: XmlPreferenceInterface.cs:34
static void DrawArc(float degrees, float radius, int segments, Vector3 pos, Quaternion orient, Color c)
Draws an arc on the X-Y plane
Definition: GizmoExtensions.cs:26
This namespace is used to provide a User Interface, in Unity's Editor, for various library classes....
Definition: ExtractEyeEnginesLogo.cs:6
This class has no intrinsic functionality, it simply stores two arrays of names. It is up to user o...
Definition: OptionNames.cs:17
void Clear()
Aborts then removes the all the ProgressThreadParam references from the set.
Definition: ProgressThreadParam.cs:143
float GetFloat(string key)
Returns the value corresponding to key in the preference file if it exists in EditorPrefs.
Definition: EditorPrefInterface.cs:50
abstract Bounds GetLocalBounds()
Abstract function used to provide the local bounds of this object.
override void OnEnable()
On Enable will register for continual updates in editor mode, register with Camer....
Definition: PerCameraMeshAndMaterials.cs:317
bool logToFileOnDisabled
If the logEnabled flag is false, this option, when true, will instead output to a basic text log file...
Definition: ConditionalDebugCategoryRegistrar.cs:30
virtual bool HasColor(int matIndex)
Specifies if the material the renderer uses (at the provided index), has a _Color
Definition: BaseRendererToGraphicsInterfaceAdapter.cs:207
static Vector2 XY(this Vector3 vec)
Converts the X and UY coordinates of a Vector3 into a new Vector2
Definition: Vector3Extensions.cs:18
override UniqueStringID IDstring()
Similar to the base class version, but this override appends [ index ] to the end of the elementOf's ...
Definition: ExposedMember.cs:633
Stores the source and destination information for a file that may, potentially, be extracted from a D...
Definition: ExtractEmbededFiles.cs:25
static GUIState recordedState
The currently recorded GUIstate. Use the RecordGUIState or RecordGUIStateAndSetToDefault to store t...
Definition: EditorUtil.cs:393
static bool alwaysShowWarnings
stores the state of the alwaysShowWarnings Preference. When true, warning will be displayed,...
Definition: CatDebug.cs:467
StoredTransform(Transform transform_to_copy, bool localNotWorld)
Create a new transform storage object, with the option to copy the source Transform's local or world ...
Definition: StoredTransform.cs:105
static string ToStringEnumerated< T >(this IEnumerable< T > list)
Convenience function to get all the items in an array into a single string.
Definition: CollectionExtensions.cs:152
Instanced Version of CatDebug. Create an new instance of this class when you want to log in a separat...
Definition: CatDebug.cs:35
override void GetPropertyBlock(out MaterialPropertyBlock dest)
Invokes the version of this function takes an material index parameter, and passes a 0 for the materi...
Definition: PerCameraMeshAndMaterials.cs:539
Example showing usage of DefaultExposedMemberEditor to display instances of the Soldier class.
Definition: SoldierEditor.cs:10
static string GetCategoryName(int category)
Retrieves the internally stored name of category specified by the provided index. If no name has been...
Definition: CatDebug.cs:656
static bool operator!=(StoredTransformList lhs, StoredTransformList rhs)
Checks to see if the two objects are NOT equal, by invoking == and negating the result.
Definition: TransformAndDecendantStorage.cs:103
static bool GetFoldoutState(SerializedProperty property)
If the property is a valid reference, returns its isExpanded (bool) member. returns false if property...
Definition: PerObjectNameBooleans.cs:319
This abstract class is used to iterate through Nodes, by applying the IEnumerable-Node- Interface....
Definition: SerializableTreeBase.cs:368
DeltaAttribute[] fieldsToCheckForChange
These members are passed to or initialized inside the constructor or Init() function.
Definition: DeltaMonitor.cs:62
Provides a standard interface to enable/disable all renderer components, including those on descendan...
Definition: IGraphicsViewable.cs:11
TransformAndDecendantStorage(Transform transform_to_copy)
Instantiate a new TransformAndChildrenStorage object. Requires a transform that will supply the data ...
Definition: TransformAndDecendantStorage.cs:136
static void SetFoldoutState(ExposedMember property, bool state)
Assigns the specified foldout state to the provided ExposedMember.
Definition: PerObjectNameBooleans.cs:61
bool initialized
Set to false when instantiated. Set to true during initialization. This distinction is important when...
Definition: DeltaMonitor.cs:78
static EditorPrefOption< Color > backgroundColor
Color of the field behind the preview object, in the preview window.
Definition: PreviewPrefs.cs:73
string Fullpath
the full path of the file, not including the filename. Generated by appending the assetPath member to...
Definition: ExtractEmbededFiles.cs:59
static void DrawCylinder(float length, float radius, int segments, Vector3 pos, Quaternion orient, Color c)
draws wire-frame cylinder oriented length-wise along the Z-axis. Ends are circles on the X-Y plane.
Definition: GizmoExtensions.cs:55
virtual void InternalDrawLimitedListProperty(Rect position, T property, GUIContent _label=null)
non auto-layout version of this control. Will draw the list in the location and area specified by the...
Definition: LimitedListProperty.cs:348
static void Clear()
Clears the internal storage of which objects have check for changes, for all transforms....
Definition: CheckTransformChangedSinceLastCheckByObject.cs:27
Created by Bunny83 for UnityAnswers.com - public domain, many thanks! Use the GetUniqueAssetPath func...
Definition: AssetDatabaseHelper.cs:16
static float Clip360(float a)
Converts any angle (degrees) to a value between zero and 360.
Definition: Mathg.cs:57
This component is added to Camera Objects by the PerCameraMeshDrawer class. It is used to get a cal...
Definition: CallbackCamera.cs:22
This class implements the ExpandableObjectPropertyDrawer, for use with ExposedMembers.
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:23
This editor will use the BaseRendererToGraphicsInterfaceAdapterEditor class it derives from,...
Definition: SpriteRendererToGraphicsInterfaceAdapterEditor.cs:14
Contains a single Extension function for gradients: ConvertToTexture
Definition: GradientToTexture.cs:11
float progress
float value that goes between 0 and 1. Written to by the running thread, it may only be read by other...
Definition: ProgressThreadParam.cs:21
override void OnPreviewGUI(Rect rect, GUIStyle background)
This function will render the diorama and display it in the Rect provided. PreviewPref options will a...
Definition: EditorWithPreview.cs:229
Example class that may be needed by the Squad class. Exposed members is the Squad class show how this...
Definition: SquadController.cs:11
override string ToString()
Similar to the base class version, but this override appends [ index ] to the end of the elementOf's ...
Definition: ExposedMember.cs:643
static void ClearCasheNow()
Static function that clears the contents of the internal scrollPositionAndDrawSize dictionary.
Definition: LimitedListProperty.cs:789
Each instance of this class stores three delegates that are used to draw the property(both,...
Definition: MemberExposerFunctions.cs:92
static void AppendToNextLog(int category, params object[] messageObjects)
This function will store the provided text, and append it to the text of the next call to a Log funct...
Definition: CatDebug.cs:612
void SetInt(string key, int value)
Sets the value of the preference identified by key to the provided value.
Definition: XmlPreferenceInterface.cs:270
this extension class contains some simple but useful mathematical functions that can be performed on ...
Definition: Vector3Extensions.cs:9
static byte[] UnzipBytes(Stream sourceStream)
Takes the provided bytes and assumes they makeup a gzipped string. It attempt to decompress the strin...
Definition: Zipper.cs:140
Material material
Stores the Material Reference of the MaterialBlock
Definition: MaterialConfig.cs:18
static void DrawProperty(Rect position, SerializedProperty property, GUIContent label, System.Type objectType, bool allowSceneObjects, bool allowCreation, params GUILayoutOption[] options)
Static function use to Draw a serializedProperty using an ExpandableObjectPropertyDrawer
Definition: ExpandableObjectPropertyDrawer.cs:122
Sample class showing how and where to call each function of the DeltaMonitor class....
Definition: MonoDeltaDetectorBit.cs:19
static bool GetBool(object lookupObject, string keyName)
Return the boolean value of the name key , "in" the object provided. Calls cleanup function,...
Definition: PerObjectNameBooleans.cs:224
void Closer()
Closes window and unregisters from EditModeIntervalCallbacks
Definition: RenamePopupWindow.cs:87
override Type systemType
Type of elements in the elementOf collection.
Definition: ExposedMember.cs:688
Type of PReference interface that stores preferences to an XML file, rather than the standard unity l...
Definition: XmlPreferenceInterface.cs:10
Definition: AssetDatabaseHelper.cs:6
bool Contains(KeyValuePair< TKeyType, TValueType > item)
check if the dictionary contains the key specified, and if so, that the value associated with the key...
Definition: SerializableDictionary.cs:240
ValueType Value
Accessor to get and set the value assigned to the preference
Definition: PrefOptionBase.cs:39
override bool showDefaultMaterials
specifies weather or not this section show be displayed
Definition: StaticMeshPerCameraByListEditor.cs:38
virtual bool HasColor(int matIndex)
Specifies if the material this instance uses, specified by the index has a _Color
Definition: CustomRenderer.cs:335
TValueType editorNewValueValue
This field exists for use by the propertyDrawer. It provides a place to store a new entry's Value inf...
Definition: SerializableDictionary.cs:47
This class is used to allow caching of icons in the project view, for specific GUIDs....
Definition: ProjectViewIcons.cs:74
Definition: MenuTreeTester.cs:6
Simple data structure used to store a transform's data. Also provides functionality to read,...
Definition: StoredFullTransform.cs:13
static object Load(string keyParam)
This function will attempt to retrieve from storage, the preference value specified by the key-parame...
Definition: PrefOptionBase.cs:221
string mainLabel
if left blank the "nicified" version of the identifier will be used for the label....
Definition: ExposeMemberAttribute.cs:93
This custom Property drawer provides all ScriptableObject descendants with the option to be displayed...
Definition: ExpandableObjectPropertyDrawer.cs:28
TreeOfLocalTransforms(Transform transformToStore)
Constructor that creates a TreeOfLocalTransforms using the provided Unity Transform.
Definition: TreeOfLocalTransforms.cs:22
static void LogError(int category, string message)
This function will take a single string, and if the category is enabled, and if a DEBUG build is runn...
Definition: CatDebug.cs:623
bool hasMultiLineAttribute()
Checks all the attributes assigned to determine if any are the MultilineAttribute or ExposeMultiLineA...
Definition: ExposedMember.cs:270
A NodeEnumberator that iterates though all the children of a node. It will not iterate any further/de...
Definition: SerializableTreeBase.cs:525
static bool operator==(StoredTransformList lhs, StoredTransformList rhs)
Compares the transforms in the provided objects to see if they are equal, by first comparing referenc...
Definition: TransformAndDecendantStorage.cs:76
bool expand
stores the current foldout state of the SerializableDictionaryPropertyDrawer. Changeable by user.
Definition: SerializableDictionaryPropertyDrawerBase.cs:28
static void FromFloatArray(this Vector3 vec, float[] floatarray)
Convenience function used to write an array of 3 floats into a vector's x,y,z coordinates.
Definition: Vector3Extensions.cs:246
Editor Used to draw PerCameraMeshAndMaterials objects. Derive from this class to create editors to dr...
Definition: PerCameraMeshAndMaterialsEditor.cs:15
UniqueStringID uniqueID
This member uniquely Identifies the string, using only a few bytes. It is used as the key in saved/lo...
Definition: ExposedMember.cs:172
static void SetupCallbacks()
For each type of PreviewEditor that has been defined, this function will add it's projectWindowItemOn...
Definition: ProjectViewIcons.cs:32
Camera accessorReferenceCamera
Internal stored and automatically updated, this member specifies which camera will be used when acces...
Definition: PerCameraMeshAndMaterials.cs:457
virtual void LateUpdate()
We call ResetValues in late update so that overrides of this class can do processing in Update....
Definition: MonoDeltaDetectorBit.cs:61
override string GetInfoString()
This function returns the string that will be displayed as the title of the preview pane in the edito...
Definition: MeshEditorWithPreview.cs:56
This class is used internally, and not intended for end user use. Invokes OnLoad, and ensures that al...
Definition: InitializeOnEditorReloadedAttribute.cs:35
Example ScriptableObject implementing ExposeMember.
Definition: Rank.cs:17
static int pixelsPerTab
Offset to use when manually computing indentation offsets.
Definition: EditorUtil.cs:44
static Constructor for this class is executed on load. Prompts user to extract xml files for DLL refe...
Definition: MemberExposerFunctions.cs:20
XmlPreferenceInterface(string fileName, string filePath)
Constructor that allows user to specify a custom file and path for used by this interface
Definition: XmlPreferenceInterface.cs:86
override void OnInspectorGUI()
Updates the serializedObject and exposes all the properties in the exposedObjectProperties member....
Definition: DefaultExposedMemberEditor.cs:33
bool hasRangeAttribute()
Checks to see if the RangeAttribute is one of those applied to this ExposedProperty
Definition: ExposedMember.cs:291
static void CopyTo(this Transform transform, Transform destination, bool SrcWorldNotLocal)
Copies local or global TRS values from the source transform (this), into the destination transform's ...
Definition: TransformExtensions.cs:22
Class providing some extended function that help perform certain tasks with Unity's Transforms.
Definition: TransformExtensions.cs:13
int SetID
SetID is a NAMED PARAMETER for this attribute. It is used when the user wants to group together vario...
Definition: DeltaAttribute.cs:147
The Only reason for this class to exist is so that we can finally apply the [System....
Definition: MenuTree.cs:54
static bool ExposePropertyLayout(ExposedMember field, GUILayoutOption[] guiOptions, object undoObject=null, GUIContent overrideLabel=null, bool useGroups=true)
Uses the appropriate EditorGUILayout function to draw the specified property, and if a change is dete...
Definition: MemberExposerFunctions.cs:1433
stores the state information regarding each category
Definition: ConditionalDebugCategoryRegistrar.cs:12
override void DoGLrendering(Camera cam)
Definition: MeshEditorWithPreview.cs:30
static void DeleteColorKey(this IStorePreferences interfaceReference, string key)
Deletes the Color (RGBA) value associated with this key, and the key itself, from prefBase....
Definition: MultiKeyPrefHelper.cs:207
bool AddChild(Node parent, T data)
called by both the UI and runtime users of the tree. This function will instantiate a new node,...
Definition: SerializableTreeBase.cs:803
static void EndDarkenedBox()
Used to restore the state of colors after the background is darkened by BeginBorderBox or BeginDarken...
Definition: EditorUtil.cs:195
Definition: CircularArray.cs:5
override void OnEnable()
Initializes serializedProperties
Definition: PerCameraMeshAndMaterialsEditor.cs:24
This class exists to provide all version of the EditorWithPreview class with access to the same previ...
Definition: PreviewDioramaShoebox.cs:15
int dataIndex
Index into SerializableTree's dataList
Definition: SerializableTreeBase.cs:24
Allows each unique Unity.Object to store it's own key/boolean pair.
Definition: PerObjectNameBooleans.cs:21
GUIContent Label
Accessor to get and set the label assigned to the preference
Definition: PrefOptionBase.cs:43
Vector3 position
Accessor to read and write the position value stored in the world StoredTransform member.
Definition: StoredFullTransform.cs:61
override bool showUpdateOptions
specifies weather or not this section show be displayed
Definition: StaticMeshPerCameraByListEditor.cs:34
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:559
virtual bool colorInterfaceEnabled
specifies weather the color specified via this interface should be displayed, or not.
Definition: TextMeshToViewableColorInterfaceAdapter.cs:63
The class serializes and stores the various options for use in the UnityEditorTools module....
Definition: EditorToolsOptions.cs:20
The component will take the provided colliderRef and use it to implement and IGraphicsBounds interfac...
Definition: ColliderToGraphicsBoundsInterfaceAdapter.cs:15
ExposedObjectMembers(object objectToExpose, UnityEngine.Object conextOfExposedObject)
Constructor takes the params needed to instantiate a new ExposedObjectMembers.
Definition: ExposedObjectMembers.cs:57
The example class is derived from another to demonstrate how inheritance works with ExposeMember....
Definition: WeaponType.cs:22
static Texture2D FrameTex()
Generates an 8x8 border texture with a transparent interior and black edges.
Definition: EditorUtil.cs:98
override bool DrawDefaultPropertyOverride
Specifies in the drawer should use the standard drawer for the property, rather than the one specifie...
Definition: DefaultExpandablePropertyDrawer.cs:31
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:536
static int ReadIStreamable(this System.IO.BinaryReader readStream, IStreamable streamableObject)
System.IO.BinaryReader extension function that reads the streamableObject from the specified binary w...
Definition: StreamableInterface.cs:83
virtual void OnAfterDeserialize()
This function is called just after Unity has loaded( or updated and REloaded) the serialized the valu...
Definition: DeltaMonitorSerialized.cs:48
Used to Automatically draw a DeltaMonitor variable as a MaskFied, allowing the user to select which f...
Definition: DeltaMonitorSerializedDrawer.cs:17
void InternalDrawLimitedListPropertyLayout(T property, GUIContent label=null, params GUILayoutOption[] options)
Auto-Layout Version of this function draws the limited list using auto layout.
Definition: LimitedListProperty.cs:153
virtual void GetPropertyBlock(out MaterialPropertyBlock dest)
Matches the form of the unity Renderer function of the same name.
Definition: CustomRenderer.cs:300
static object GetValueViaPath(this object rootObject, string path)
Given a Unity SerialiazatbleProperty path, and an object reference, get the value in the object's fie...
Definition: SerializedPropertyExtensions.cs:43
override IEnumerator< Node > GetEnumerator()
Definition: SerializableTreeBase.cs:513
bool GroupFoldoutState()
If the group that this ExposedProperty is a member of, has a foldout/fold-up option,...
Definition: ExposedMember.cs:370
void OnBeforeSerialize()
This function is required by the ISerializationCallbackReceiver Interface. Called automatically via t...
Definition: SerializableTree.cs:20
override bool showMaterialSection
specifies weather or not this section show be displayed
Definition: PerCameraMeshAndMaterialsEditor.cs:45
PlayerPrefOptionArray(ValueType[] _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true)
Constructor takes almost all members as parameters, with the exception of the current value....
Definition: PlayerPrefArrayOption.cs:22
TransformDictionaryStorage()
Creates an empty TransformDictionaryStorage object, that does not reference any transforms.
Definition: TransformDictionaryStorage.cs:31
float GetFloat(string key)
Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
Definition: PlayerPrefInterface.cs:34
delegate void CameraCallbackSignture(Camera camera, Matrix4x4 view, Matrix4x4 projection)
The delegate defines the signature of the callback functions used when registering object with the Ob...
Class is almost identical to a TransformDictonaryStorage, with the exception that Equal's will always...
Definition: TransformChildrenDictionaryStorage.cs:12
void InvokeCallbackForAllRegisteredObjects()
Function to manually invoke the all stored callback functions. Internally called during OnEnable,...
Definition: CallbackCamera.cs:155
delegate string GetObjectPathEditorCallback(Object value)
The delegate specified the function signature of the function the editor put into the editorAdapterVe...
void OnAfterDeserialize()
Required to implement the unity ISerializationCallbackReceiver. It will convert the serialized list d...
Definition: SerializableDictionary.cs:158
static Vector3 GetCubeSurfacePointInDirection(Vector3 normalizedDirection, float cubeSize)
Computes the position of a cubes surface, in a given direction from the cube's center.
Definition: VolumeTransforms.cs:58
bool AlwaysLoadAndSaveOnValueAccess
specifies weather using the Value accessor will automatically load or save the value to the preferenc...
Definition: PrefOptionBase.cs:47
virtual void Start()
Stores initial values for changeMonitor on Start. Also invokes DetectChanges() once,...
Definition: MonoDeltaDetectorUnityBase.cs:35
bool HasKey(string key)
Returns true if key exists in the preferences.
Definition: XmlPreferenceInterface.cs:237
virtual GUIContent KeyLabel()
label to be used for keys. Users may override this function to change the label.
Definition: SerializableDictionaryPropertyDrawerBase.cs:283
Quaternion localRotation
accessor to extract and store transform orientation information
Definition: StoredTransform.cs:38
string ToString(bool includeNewlines=true)
Output transform storage as single line string, useful for debugging.
Definition: TransformAndDecendantStorage.cs:286
override int GetHashCode()
This dynamic class does not provide unique HashCodes based on the data they contain.
Definition: CheckTransformChangedSinceLastCheckByObject.cs:180
static bool logToFileIncludeStackStrace
when true, log entries that are not sent to unity console, but ARE sent to a log file,...
Definition: CatDebug.cs:472
GUIContent Label
The accessor allows one to read/write the optional label assigned to the preference options....
Definition: PrefOptionBase.cs:181
bool Equals(StoredTransform trasformStorage)
Specific version of equality function used to compare with a StoredTransform structs.
Definition: StoredTransform.cs:377
void DrawBox(Rect position)
Simple static function used to draw a box at the given rect, factoring in the current indent level.
Definition: SerializableDictionaryPropertyDrawerBase.cs:33
This class contains extension functions used to draw some specific types of PrefOptions....
Definition: PrefOptionBaseEditorDrawingExtensions.cs:13
int GetInt(string key)
Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
Definition: PlayerPrefInterface.cs:42
static void OnGUI()
Code that displays the options for this module in the EyE editor project settings window.
Definition: EditorToolsOptions.cs:201
void SerializeDetectionEnabledList()
Reads from run-time attributes array, and writes the name of all enabled attributes into the serializ...
Definition: DeltaMonitor.cs:398
override void InternalDrawLimitedListProperty(Rect position, SerializedProperty property, GUIContent label=null)
Implements the abstract function defined in LimitedListDrawer. function will invoke the base class ve...
Definition: LimitedListProperty.cs:839
override Bounds bounds
finds/computes the bounds for the mesh drawn by the camera specified in the accessorReferenceCamera
Definition: PerCameraMeshAndMaterials.cs:521
Only the node itself, then Children/direct descendants will be enumerated.
float GetFloat(string key)
Returns the value corresponding to key in the preference file if it exists.
ExposedObjectMembers exposedObjProperties
This ExposedObjectMembers computes and cashes the properties that will be exposes by this PropertyDra...
Definition: DefaultExposedMemberExpandablePropertyDrawer.cs:92
delegate object DrawListItemDelegate(GUIContent label, object listElement)
This delegate defines a function that will be used to draw individual elements of a list....
float ExposePropertyHeight(string name, bool useGroups=true)
Gets the hight of the control. Function used lookup the exposed-property with the specified name,...
Definition: ExposedObjectMembers.cs:231
This class provides a function that can be used to display the Various Debug Categories along with to...
Definition: CategoricalDebugOptionsGUI.cs:35
virtual bool Equals(Transform compareTransform, bool localNotWorld)
Use to compare with an existing transform. Compare values in the transform and all children to see if...
Definition: TransformDictionaryStorage.cs:123
static void LerpRotation(this Transform transform, Quaternion finalRotation, float fraction)
Convenience function used to get, lerp, and set the transform's rotation
Definition: TransformExtensions.cs:58
void SetFloat(string key, float value)
Sets the value of the preference identified by key to the provided value.
static void SetColor(this IStorePreferences interfaceReference, string key, Color color)
Sets the Color value associated with this key, in prefBase, to the provided Vector2....
Definition: MultiKeyPrefHelper.cs:191
Thread runnigThreadRef
reference to the thread process itself
Definition: ProgressThreadParam.cs:33
bool AlwaysLoadAndSaveOnValueAccess
When true, loading and saving will happen every-time the value of this preference is accessed....
Definition: PrefOptionBase.cs:111
StoredTransform(StoredFullTransform transform_to_copy, bool localNotWorld)
Create a new transform storage object, with the option to copy the source StoredFullTransform's local...
Definition: StoredTransform.cs:139
static void WriteFileForHashCodeDictionary(string sceneName=null)
Stores the boolean data for all elements in the dictionary, in a file in the current directory (proje...
Definition: PerObjectNameBooleans.cs:430
abstract bool AllowSceneObjects()
Descendants must override this abstract function to either compute or specify whether to allow SceneO...
override void StoreTransformAndChildren(Transform transformToStore)
This function is called to Store a transform Object in the TransformTree. All descendants of the tran...
Definition: TransformStorageTree.cs:49
string failureText
only valid when isProcessing is false, and the thread had been started, and success is false....
Definition: ProgressThreadParam.cs:41
PrefOptionBase's are used by the programmer to completely specify a "Preference setting" in a standar...
Definition: PrefOptionBase.cs:69
SerializedPropertyDrawerBase base class used to create property drawers for any class based upon Seri...
Definition: SerializedTreePropertyDrawerBase.cs:14
float startTime
time recorded when thread began
Definition: ProgressThreadParam.cs:29
virtual bool Equals(Transform compareTransform)
Specific version of equality function used to compare with a Transform object. It allows the caller t...
Definition: TreeOfLocalTransforms.cs:85
bool importTextureAsSprite
When true (NOT default Value), after extraction from the dll, the asset will be assigned TextureImpor...
Definition: ExtractEmbededFiles.cs:52