Exemplo n.º 1
0
        public ObiPaintBrushEditorTool(ObiMeshBasedActorBlueprintEditor editor) : base(editor)
        {
            m_Icon = Resources.Load <Texture2D>("BrushIcon");
            m_Name = "Property painting";

            paintBrush = new ObiRaycastBrush(editor.sourceMesh,
                                             () =>
            {
                // As RecordObject diffs with the end of the current frame,
                // and this is a multi-frame operation, we need to use RegisterCompleteObjectUndo instead.
                Undo.RegisterCompleteObjectUndo(editor.blueprint, "Paint particles");
            },
                                             () =>
            {
                editor.Refresh();
            },
                                             () =>
            {
                EditorUtility.SetDirty(editor.blueprint);
            });
        }
 public ObiPropertyTextureEditorTool(ObiMeshBasedActorBlueprintEditor editor) : base(editor)
 {
     m_Icon = Resources.Load <Texture2D>("TextureIcon");
     m_Name = "Texture import/export";
 }
Exemplo n.º 3
0
 public ObiBlueprintRenderModeAerodynamicConstraints(ObiMeshBasedActorBlueprintEditor editor) : base(editor)
 {
 }
 public ObiBlueprintRenderModeMesh(ObiMeshBasedActorBlueprintEditor editor) : base(editor)
 {
 }