Coder Social home page Coder Social logo

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

cyanilux avatar cyanilux commented on June 14, 2024
Months passed while I thought unity was randomly loading something the first time I pressed S at runtime in the editor...

from shadergraphvariables.

Comments (1)

Cyanilux avatar Cyanilux commented on June 14, 2024

That's odd. I do have some font-loading on the SGVariables side to calculate the width for the Get/Register Variable nodes, but that has nothing to do with the ExtraFeatures & shortcuts. And afaik it should only load once - I've seen no editor freezes on my end.

Anyway, I've tweaked the code a bit (moved the font loading into the ResizeNodeToFitText function where it's needed) which might help, so try removing the package & re-add it.

Ideally I would make the shortcuts only work inside the ShaderGraph tab (via using typeof(MaterialGraphEditWindow) in the ShortcutAttribute) which would avoid conflicts, however due to Unity's excessive use of internal those classes are inaccessible so the shortcuts need to be "global". That said, there is still a graphView != null check so these shortcuts won't do anything if a graph is not open.

If conflicts are common or the shortcuts aren't needed, they can be remapped/removed via Unity's Shortcuts window.

from shadergraphvariables.

Related Issues (3)

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.