[Mono-ue] compile error: UProperty Category

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Nov 2 19:31:08 UTC 2014


Yes, hot-reload uses the IntPtr ctor, since it saves and restores the
class's state.

On 2 November 2014 06:36, Duane Wandless <duane at wandless.net> wrote:
> Thanks for the clarification on the changes.
>
> For the hot reload I was changing the code in the constructor which caused
> UE to stop playing.  If I change the code in the tick method it works as
> expected.
>
> On Sat, Nov 1, 2014 at 4:53 PM, Michael Hutchinson
> <m.j.hutchinson at gmail.com> wrote:
>>
>> Sorry, the API has been tweaked a little since writing the Getting
>> Started. Category is now a separate attribute e.g.
>>
>> [UProperty, Category ("Static Mesh")]
>> public Subobject<StaticMeshComponent> MeshComponent { get; set; }
>>
>> And the "this" parameter is now implicitly provided by the PCIP:
>>
>> MeshComponent = pcip.CreateDefaultSubobject<StaticMeshComponent> (new
>> Name ("StaticMeshComponent0"));
>>
>> In what way does hot reload not work? There should be log messages in
>> the UE Output Log when the IDE notifies UE to perform the hot-reload,
>> are those messages there?
>>
>>
>> On 1 November 2014 14:51, Duane Wandless <duane at wandless.net> wrote:
>> > I'm trying to implement the simple getting started example on Win64.  I
>> > receive these compile errors, http://pastebin.com/H3fsXJ1k.
>> >
>> > The compile is failing on these two lines (full source):
>> > [UProperty(Category = "Static Mesh")]
>> > public Subobject<StaticMeshComponent> MeshComponent { get; set; }
>> > and
>> > MeshComponent = pcip.CreateDefaultSubobject<StaticMeshComponent>(this,
>> > new
>> > Name("StaticMeshComponent0"));
>> >
>> > UProperty does not contain Category (UProperty from Assembly browser).
>> > And
>> > no signature matches on pcip.  If I remove Category and modify the
>> > signature
>> > to be CreateDefaultSubobject...(new Name("...") I am able to get the C#
>> > code
>> > to impact the UE project, though hot reload does not work.
>> >
>> > Any ideas on why the bindings are incomplete?
>> >
>> > Thanks,
>> > Duane
>> >
>> > Also- well done on the past few years!
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Mono-ue mailing list
>> > Mono-ue at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-ue
>> >
>>
>>
>>
>> --
>> Michael Hutchinson ~ https://mhut.ch
>
>



-- 
Michael Hutchinson ~ https://mhut.ch


More information about the Mono-ue mailing list