codewriter-packages / unimob Goto Github PK
View Code? Open in Web Editor NEWModern reactive programming library for Unity (inspired by MobX js)
License: MIT License
Modern reactive programming library for Unity (inspired by MobX js)
License: MIT License
Hey,
Is it possible for UniMob use latest version of Mono.Cecil (no specific version set)? Everytime I try to use UniMob I am getting conflicts with other packages that use Cecil.
Please correct the package name to include at least 3 components, e.g. com.unity.ugui
.
I want to add your packages to OpenUPM, but it requires the package to have a valid name format.
I suggest adding codewriter
to the name, so com.unimob
will become 'com.codewriter.unimob
.
Hey, Is there a way to get previous value of an [Atom] property inside of Reaction?
Hi,
first of all: fantastic project, always great to see solutions that promote declarative designs. Looking forward to updates to UniMob.UI too.
Question tho: do I understand correctly that collections (like Todo[] array) have to be replaced entirely for Atom to detect changes? (So basically it should be be treated as immutable collection) As in this would not work as expected, correct?:
[Atom] public List<Todo> Todos { get; set; } = new List<Todo>();
incrementButton.onClick.AddListener(() =>
{
Todos.Add(new Todo());
});
Atom.Reaction(() => counterText.text = "Unifinished: " + UnfinishedTodoCount);
Hi,
I think I am missing something still, code sample:
public class ExperimentsWindow : Window
{
class ViewModel
{
[Atom]
public int IntValue { get; set; }
}
[Atom]
ViewModel VM { get; set; }
private void Start()
{
Initialize();
VM = new ViewModel() { IntValue = 5 };
// tried this too: Atom.Reaction(() => Debug.Log($"Int value {VM.IntValue}"));
Atom.Reaction(() => VM.IntValue, i => Debug.Log($"Int value {i}"));
VM.IntValue = 6;
VM = new ViewModel() { IntValue = 7 };
}
}
When running, I always only see values "5" or "7" printed but not "6". Is there a way to React to changes in multi-level Atoms?
Describe the bug
Enter Play Mode faster in Unity 2019.3
Expected behavior
When "Disabling Domain Reloading", AtomScheduler should be created.
static variable should be cleared.
UniMob/Runtime/Core/AtomScheduler.cs
Line 21 in 59a60bb
maybe this document useful.
unity document for Domain Reloading
Desktop:
Unity version:
UniMob version: 59a60bb
Other plugins installed:
Describe the bug
I am using Atom in many things in my unity android game. I saw that so many crashes happen during Atom Evaluations.
Expected behavior
Not to crash
Desktop: Android
Unity version: 2021.3.9f1
UniMob version: 2.2.0
Other plugins installed: UniTask, DoTween, VContainer
I do not know if there is a relation but this crash happens mainly when Atom AddSusbcriber or Evaluate is called from thread pool? Do I have to use Atom in unity main thread?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.