粒子旋转
This commit is contained in:
@@ -200,8 +200,7 @@ namespace Ichni.Editor
|
||||
}
|
||||
|
||||
public DynamicUIEnumDropdown GenerateDropdown(IBaseElement baseElement, DynamicUISubcontainer subcontainer,
|
||||
string title,
|
||||
System.Type enumType, string parameterName)
|
||||
string title, System.Type enumType, string parameterName)
|
||||
{
|
||||
DynamicUIEnumDropdown enumDropdown = Object
|
||||
.Instantiate(EditorManager.instance.basePrefabs.enumDropdown, subcontainer.rect)
|
||||
@@ -213,8 +212,7 @@ namespace Ichni.Editor
|
||||
}
|
||||
|
||||
public DynamicUIStringListDropdown GenerateDropdown(IBaseElement baseElement, DynamicUISubcontainer subcontainer,
|
||||
string title,
|
||||
List<string> stringList, string parameterName)
|
||||
string title, List<string> stringList, string parameterName)
|
||||
{
|
||||
DynamicUIStringListDropdown stringListDropdown = Object
|
||||
.Instantiate(EditorManager.instance.basePrefabs.stringListDropdown, subcontainer.rect)
|
||||
|
||||
@@ -241,9 +241,14 @@ namespace Ichni.RhythmGame
|
||||
private void SetParticleRotation()
|
||||
{
|
||||
var mainModule = particle.main;
|
||||
mainModule.startRotationX = particleRotation.x;
|
||||
mainModule.startRotationY = particleRotation.y;
|
||||
mainModule.startRotationZ = particleRotation.z;
|
||||
|
||||
float rotationX_InRadians = particleRotation.x * Mathf.Deg2Rad;
|
||||
float rotationY_InRadians = particleRotation.y * Mathf.Deg2Rad;
|
||||
float rotationZ_InRadians = particleRotation.z * Mathf.Deg2Rad;
|
||||
|
||||
mainModule.startRotationX = new ParticleSystem.MinMaxCurve(rotationX_InRadians);
|
||||
mainModule.startRotationY = new ParticleSystem.MinMaxCurve(rotationY_InRadians);
|
||||
mainModule.startRotationZ = new ParticleSystem.MinMaxCurve(rotationZ_InRadians);
|
||||
}
|
||||
|
||||
public override void Refresh()
|
||||
|
||||
Reference in New Issue
Block a user