Merge branch 'ModelSliders' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-ModelSliders
This commit is contained in:
@@ -236,6 +236,7 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
var group = layout.Group("General");
|
var group = layout.Group("General");
|
||||||
|
|
||||||
var minScreenSize = group.FloatValue("Min Screen Size", "The minimum screen size to draw model (the bottom limit). Used to cull small models. Set to 0 to disable this feature.");
|
var minScreenSize = group.FloatValue("Min Screen Size", "The minimum screen size to draw model (the bottom limit). Used to cull small models. Set to 0 to disable this feature.");
|
||||||
|
minScreenSize.ValueBox.SlideSpeed = 0.005f;
|
||||||
minScreenSize.ValueBox.MinValue = 0.0f;
|
minScreenSize.ValueBox.MinValue = 0.0f;
|
||||||
minScreenSize.ValueBox.MaxValue = 1.0f;
|
minScreenSize.ValueBox.MaxValue = 1.0f;
|
||||||
minScreenSize.ValueBox.Value = proxy.Asset.MinScreenSize;
|
minScreenSize.ValueBox.Value = proxy.Asset.MinScreenSize;
|
||||||
@@ -476,12 +477,12 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[EditorOrder(1), EditorDisplay(null, "LOD"), Limit(0, Model.MaxLODs), VisibleIf("ShowUVs")]
|
[EditorOrder(1), EditorDisplay(null, "LOD"), Limit(0, Model.MaxLODs, 0.01f), VisibleIf("ShowUVs")]
|
||||||
[Tooltip("Level Of Detail index to preview UVs layout.")]
|
[Tooltip("Level Of Detail index to preview UVs layout at.")]
|
||||||
public int LOD = 0;
|
public int LOD = 0;
|
||||||
|
|
||||||
[EditorOrder(2), EditorDisplay(null, "Mesh"), Limit(-1, 1000000), VisibleIf("ShowUVs")]
|
[EditorOrder(2), EditorDisplay(null, "Mesh"), Limit(-1, 1000000, 0.01f), VisibleIf("ShowUVs")]
|
||||||
[Tooltip("Mesh index to preview UVs layout. Use -1 for all meshes")]
|
[Tooltip("Mesh index to show UVs layout for. Use -1 to display all UVs of all meshes")]
|
||||||
public int Mesh = -1;
|
public int Mesh = -1;
|
||||||
|
|
||||||
private bool ShowUVs => _uvChannel != UVChannel.None;
|
private bool ShowUVs => _uvChannel != UVChannel.None;
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
}
|
}
|
||||||
|
|
||||||
var resolution = group.FloatValue("Resolution Scale", Window.Editor.CodeDocs.GetTooltip(typeof(ModelTool.Options), nameof(ModelImportSettings.Settings.SDFResolution)));
|
var resolution = group.FloatValue("Resolution Scale", Window.Editor.CodeDocs.GetTooltip(typeof(ModelTool.Options), nameof(ModelImportSettings.Settings.SDFResolution)));
|
||||||
|
resolution.ValueBox.SlideSpeed = 0.001f;
|
||||||
resolution.ValueBox.MinValue = 0.0001f;
|
resolution.ValueBox.MinValue = 0.0001f;
|
||||||
resolution.ValueBox.MaxValue = 100.0f;
|
resolution.ValueBox.MaxValue = 100.0f;
|
||||||
resolution.ValueBox.Value = sdf.Texture != null ? sdf.ResolutionScale : 1.0f;
|
resolution.ValueBox.Value = sdf.Texture != null ? sdf.ResolutionScale : 1.0f;
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public:
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The animation update delta timescale. Can be used to speed up animation playback or create slow motion effect.
|
/// The animation update delta timescale. Can be used to speed up animation playback or create slow motion effect.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
API_FIELD(Attributes="EditorOrder(45), EditorDisplay(\"Skinned Model\")")
|
API_FIELD(Attributes="EditorOrder(45), Limit(0, float.MaxValue, 0.025f), EditorDisplay(\"Skinned Model\")")
|
||||||
float UpdateSpeed = 1.0f;
|
float UpdateSpeed = 1.0f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -122,7 +122,7 @@ public:
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The master scale parameter for the actor bounding box. Helps to reduce mesh flickering effect on screen edges.
|
/// The master scale parameter for the actor bounding box. Helps to reduce mesh flickering effect on screen edges.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
API_FIELD(Attributes="EditorOrder(60), DefaultValue(1.5f), Limit(0), EditorDisplay(\"Skinned Model\")")
|
API_FIELD(Attributes="EditorOrder(60), DefaultValue(1.5f), Limit(0, float.MaxValue, 0.025f), EditorDisplay(\"Skinned Model\")")
|
||||||
float BoundsScale = 1.5f;
|
float BoundsScale = 1.5f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user