protected AbstractMaterialExporter(Urho3DEngine engine) { if (engine == null) { throw new ArgumentNullException(nameof(engine)); } Engine = engine; }
public TransitionJson(AnimatorStateTransition transition, Urho3DEngine engine, PrefabContext prefabContext) { this.destinationState = engine.DecorateName(transition.destinationState.name); this.duration = transition.duration; // this.hasFixedDuration = transition.hasFixedDuration; // this.canTransitionToSelf = transition.canTransitionToSelf; // this.exitTime = transition.exitTime; // this.hasExitTime = transition.hasExitTime; // this.offset = transition.offset; // this.orderedInterruption = transition.orderedInterruption; this.conditions = transition.conditions.Select(_ => new ConditionJson(_, engine, prefabContext)).ToArray(); // this.isExit = transition.isExit; // this.mute = transition.mute; // this.solo = transition.solo; }
public ChildMotionJson(ChildMotion childMotion, Urho3DEngine engine, PrefabContext prefabContext) { this.cycleOffset = childMotion.cycleOffset; var motion = childMotion.motion; if (motion is AnimationClip animationClip) { this.animationClip = engine.EvaluateAnimationName(animationClip, prefabContext); engine.ScheduleAssetExport(animationClip, prefabContext); } else if (motion is BlendTree blendTree) { this.hasBlendTree = true; this.blendTree = new BlendTreeJson(blendTree, engine, prefabContext); } }
public MaterialExporter(Urho3DEngine engine) { _engine = engine; _defaultExporter = new LegacyMaterialExporter(_engine); _skyboxMaterialExporter = new SkyboxMaterialExporter(_engine); _exporters = new IUrho3DMaterialExporter[] { _defaultExporter, new StandardMaterialExporter(_engine), new StandardSpecularMaterialExporter(_engine), new WaterMaterialExporter(_engine), _skyboxMaterialExporter, new VegetationMaterialExporter(_engine), new HDRPMaterialExporter(_engine) }.OrderByDescending(_ => _.ExporterPriority).ToList(); }
public BlendTreeJson(BlendTree blendTree, Urho3DEngine engine, PrefabContext prefabContext) { this.name = engine.DecorateName(blendTree.name); this.blendParameter = blendTree.blendParameter; this.blendParameterY = blendTree.blendParameterY; this.blendType = blendTree.blendType; this.maxThreshold = blendTree.maxThreshold; this.minThreshold = blendTree.minThreshold; this.useAutomaticThresholds = blendTree.useAutomaticThresholds; this.apparentSpeed = blendTree.apparentSpeed; this.averageAngularSpeed = blendTree.averageAngularSpeed; this.averageDuration = blendTree.averageDuration; this.averageSpeed = blendTree.averageSpeed; this.isHumanMotion = blendTree.isHumanMotion; this.isLooping = blendTree.isLooping; this.legacy = blendTree.legacy; this.children = blendTree.children.Select(_ => new ChildMotionJson(_, engine, prefabContext)).ToArray(); }
public StateJson(AnimatorState state, Urho3DEngine engine, PrefabContext prefabContext) { this.name = engine.DecorateName(state.name); // this.speed = state.speed; // this.cycleOffset = state.cycleOffset; var motion = state.motion; if (motion is AnimationClip animationClip) { // this.animationClip = engine.EvaluateAnimationName(animationClip, prefabContext); engine.ScheduleAssetExport(animationClip, prefabContext); } else if (motion is BlendTree blendTree) { // this.hasBlendTree = true; // this.blendTree = new BlendTreeJson(blendTree, engine, prefabContext); } transitions = state.transitions.Select(_ => new TransitionJson(_, engine, prefabContext)).ToArray(); }
public PrefabExporter(Urho3DEngine engine) : base(engine) { }
public LayerJson(AnimatorControllerLayer layer, string name, int index, Urho3DEngine engine, PrefabContext prefabContext) { stateMachine = ExportUtils.ReplaceExtension(name, $".SM{index}.json"); }
public ControllerJson(AnimatorController animationController, string assetName, Urho3DEngine engine, PrefabContext prefabContext) { this.name = engine.DecorateName(animationController.name); layers = animationController.layers.Select((_, index) => new LayerJson(_, assetName, index, engine, prefabContext)).ToArray(); }
public AudioExporter(Urho3DEngine engine) { _engine = engine; }
public HDRPMaterialExporter(Urho3DEngine engine) : base(engine) { }
public CubemapExporter(Urho3DEngine engine) { _engine = engine; }
public TextureExporter(Urho3DEngine engine) { _engine = engine; }
public BaseNodeExporter(Urho3DEngine engine) { _engine = engine; }
public VegetationMaterialExporter(Urho3DEngine engine) : base(engine) { }
public AnimationExporter(Urho3DEngine engine) { _engine = engine; }
public SceneExporter(Urho3DEngine engine) : base(engine) { }
public AnimationControllerExporter(Urho3DEngine engine) { _engine = engine; }
public MeshExporter(Urho3DEngine engine) { _engine = engine; }
public TerrainExporter(Urho3DEngine engine) { _engine = engine; }
// [SerializeField] public float threshold; public ConditionJson(AnimatorCondition animatorCondition, Urho3DEngine engine, PrefabContext prefabContext) { this.mode = animatorCondition.mode; this.parameter = animatorCondition.parameter; // this.threshold = animatorCondition.threshold; }
public StandardMaterialExporter(Urho3DEngine engine) : base(engine) { }
public StateMachineJson(AnimatorStateMachine stateMachine, Urho3DEngine engine, PrefabContext prefabContext) { this.defaultState = engine.DecorateName(stateMachine.defaultState?.name); this.anyStateTransitions = stateMachine.anyStateTransitions.Select(_ => new TransitionJson(_, engine, prefabContext)).ToArray(); states = stateMachine.states.Select(_ => new StateJson(_.state, engine, prefabContext)).ToArray(); }
public LegacyMaterialExporter(Urho3DEngine engine) : base(engine) { }
public SkyboxMaterialExporter(Urho3DEngine engine) : base(engine) { }