Coder Social home page Coder Social logo

cyanilux / shadergraphvariables Goto Github PK

View Code? Open in Web Editor NEW
242.0 242.0 23.0 265 KB

Adds 'Register Variable' and 'Get Variable' nodes to Shader Graph, allowing you to link sections of a graph without connection wires. <3

License: MIT License

C# 100.00%

shadergraphvariables's People

Contributors

aisinker avatar cyanilux avatar michalsobejko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shadergraphvariables's Issues

Variable nodes Error

Hi Cyanilux, I encountered an error, I migrated the project shader (and the unity version was updated), all Variable nodes went wrong, and the following error was reported.
I had to delete all Variable nodes.

image

Feature Request: Explicit Types

Great package! Very helpful.

It would be great to be able to choose type explicitely. Float, Vector2, Vector3 etc. This could be housed in the graph inspector panel, under the node settings tab. When you select a Register Variable node, you'd see and set its type there.

Thank you!

Performance regression / editor stall with Unity 2022 LTS

Hey there!

I'm getting some editor stalls after upgrading a project from Unity 2021 LTS to the (newly released) Unity 2022 LTS.

It seems to occur within the editor update / 'CheckforGraphs' method when the Shadergraph window is refocused.

I enabled the debug messages in the code to see what's going on during the stall to see if I could find a fix to no avail —it reads the editor window as switched, clears the variable dictionary, registers each one back, and then handles the linking. This seems like what it should normally be doing, yea? It seems to be wildin' with GC allocations for a single frame when editor functionality returns.

Profiler screenshot, if it's of any help!

Unity_kL0

Currently Using:

  • Unity 2022.3.1f1 LTS
  • Shadergraph 14.0.8
  • Shader Graph Variables 1.0.1

P.S. This is an invaluable QoL utility for Shadergraph so thanks for making it 🌞

Images, please ignore

Just using this issue to upload images/gifs to avoid them needing to be in the repo itself~

Variables
PortSwap
GroupColor

Months passed while I thought unity was randomly loading something the first time I pressed S at runtime in the editor...

Turns out it was the extra feature with the very unique shortcuts S 1 2 3 4 5 6 7 8 9 that, when pressed, made the editor load a font, which freezes the editor at runtime for half a second.

The major issue with that is that it has an effect at runtime even without any shader graph tab open, resource loading is obsolete since a while already, there is no indication that a custom piece of code is doing something to return immediately (no shader graph open), and the shortcuts are way, WAY, too common.

I write this there to save some time to anyone wondering why the letter "S" Unity?? Why are you trying to access files??

The funniest thing is that I found out that this piece of code was even there because I mistakenly selected a Terrain at runtime while in scene view and Unity warned me that 2 editor code were using the letter "S" as shortcuts and that they would conflict. I almost dismissed it when it hit me like a heavy rock in the face.

2020.3.47f1c1不包含DropdownField

我是2020.3.47f1c1,ShaderGraph10.10.1,导入后报错

Packages\ShaderGraphVariables-main\Editor\SGVariables.cs(411,24): error CS0246: The type or namespace name 'DropdownField' could not be found (are you missing a using directive or an assembly reference?)

这Unity的版本没有DropdownField

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.