initial commit
This commit is contained in:
parent
6715289efe
commit
788c3389af
37645 changed files with 2526849 additions and 80 deletions
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEditor.Graphing;
|
||||
using UnityEditor.ShaderGraph.Drawing.Colors;
|
||||
using UnityEditor.ShaderGraph.Internal;
|
||||
using UnityEditor.ShaderGraph.Drawing;
|
||||
using UnityEditor.ShaderGraph.Serialization;
|
||||
using UnityEngine.Assertions;
|
||||
using UnityEngine.Pool;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
interface IRectInterface
|
||||
{
|
||||
Rect rect
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a7268d6a70314cc41bc1a502cd86b4f9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
|||
using UnityEditor.Experimental.GraphView;
|
||||
|
||||
namespace UnityEditor.ShaderGraph.Drawing.Interfaces
|
||||
{
|
||||
interface ISGResizable : IResizable
|
||||
{
|
||||
// Depending on the return value, the ElementResizer either allows resizing past parent view edge (like in case of StickyNote) or clamps the size at the edges of parent view (like for GraphSubWindows)
|
||||
bool CanResizePastParentBounds();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9c7ee7c586084a1796aca0ec5ca83fdf
|
||||
timeCreated: 1605228010
|
|
@ -0,0 +1,22 @@
|
|||
using UnityEditor.ShaderGraph;
|
||||
|
||||
namespace UnityEditor.ShaderGraph.Drawing
|
||||
{
|
||||
interface ISGControlledElement
|
||||
{
|
||||
SGController controller
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
void OnControllerChanged(ref SGControllerChangedEvent e);
|
||||
|
||||
void OnControllerEvent(SGControllerEvent e);
|
||||
}
|
||||
|
||||
interface ISGControlledElement<T> : ISGControlledElement where T : SGController
|
||||
{
|
||||
// This provides a way to access the controller of a ControlledElement at both the base class SGController level and child class level
|
||||
new T controller { get; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fd84c20068e34fd1988393f51b9ef723
|
||||
timeCreated: 1608679578
|
|
@ -0,0 +1,13 @@
|
|||
using UnityEngine.UIElements;
|
||||
|
||||
namespace UnityEditor.ShaderGraph.Drawing
|
||||
{
|
||||
interface ISGViewModel
|
||||
{
|
||||
VisualElement parentView { get; set; }
|
||||
|
||||
// Wipes all data in this view-model that will be fed to the view that depends on it
|
||||
// A notable point is that this function typically should not null out the parentView field seen above
|
||||
void ResetViewModelData();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 612adbedac3183d4aa684efb732202d4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue